Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
9ff4cf0b
Commit
9ff4cf0b
authored
3 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
split_string_to_unsigned: use string_view
Change-Id: I40a4f6be0ed1cda1df1ca529fa16f3a61d4d93db
parent
9501a2a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/string_utils.cpp
+1
-1
1 addition, 1 deletion
src/string_utils.cpp
src/string_utils.h
+1
-1
1 addition, 1 deletion
src/string_utils.h
with
2 additions
and
2 deletions
src/string_utils.cpp
+
1
−
1
View file @
9ff4cf0b
...
...
@@ -112,7 +112,7 @@ trim(std::string_view s)
}
std
::
vector
<
unsigned
>
split_string_to_unsigned
(
const
std
::
string
&
str
,
char
delim
)
split_string_to_unsigned
(
std
::
string
_view
str
,
char
delim
)
{
std
::
vector
<
unsigned
>
output
;
for
(
auto
first
=
str
.
data
(),
second
=
str
.
data
(),
last
=
first
+
str
.
size
();
second
!=
last
&&
first
!=
last
;
first
=
second
+
1
)
{
...
...
This diff is collapsed.
Click to expand it.
src/string_utils.h
+
1
−
1
View file @
9ff4cf0b
...
...
@@ -172,7 +172,7 @@ std::vector<std::string_view> split_string(std::string_view str, std::string_vie
return
output
;
}
std
::
vector
<
unsigned
>
split_string_to_unsigned
(
const
std
::
string
&
s
,
char
sep
);
std
::
vector
<
unsigned
>
split_string_to_unsigned
(
std
::
string
_view
s
,
char
sep
);
void
string_replace
(
std
::
string
&
str
,
const
std
::
string
&
from
,
const
std
::
string
&
to
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment