Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
b51bc563
Commit
b51bc563
authored
Nov 20, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused functions
parent
5b63af27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
libcaf_core/caf/string_algorithms.hpp
libcaf_core/caf/string_algorithms.hpp
+0
-26
No files found.
libcaf_core/caf/string_algorithms.hpp
View file @
b51bc563
...
...
@@ -68,18 +68,6 @@ std::string join(const Container& c, string_view glue) {
return
join
(
c
.
begin
(),
c
.
end
(),
glue
);
}
// end of recursion
inline
void
splice
(
std
::
string
&
,
string_view
)
{
// nop
}
template
<
class
T
,
class
...
Ts
>
void
splice
(
std
::
string
&
str
,
string_view
glue
,
T
&&
arg
,
Ts
&&
...
xs
)
{
str
.
insert
(
str
.
end
(),
glue
.
begin
(),
glue
.
end
());
str
+=
std
::
forward
<
T
>
(
arg
);
splice
(
str
,
glue
,
std
::
forward
<
Ts
>
(
xs
)...);
}
/// Replaces all occurrences of `what` by `with` in `str`.
void
replace_all
(
std
::
string
&
str
,
string_view
what
,
string_view
with
);
...
...
@@ -89,18 +77,4 @@ bool starts_with(string_view str, string_view prefix);
/// Returns whether `str` ends with `suffix`.
bool
ends_with
(
string_view
str
,
string_view
suffix
);
template
<
class
T
>
typename
std
::
enable_if
<
std
::
is_arithmetic
<
T
>::
value
,
std
::
string
>::
type
convert_to_str
(
T
value
)
{
return
std
::
to_string
(
value
);
}
inline
std
::
string
convert_to_str
(
std
::
string
value
)
{
return
value
;
}
}
// namespace caf
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment