Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
885a27c0
Commit
885a27c0
authored
Jun 03, 2013
by
Davis King
Browse files
Made split() work on char* strings.
parent
e8276602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
dlib/string/string.h
dlib/string/string.h
+8
-0
No files found.
dlib/string/string.h
View file @
885a27c0
...
@@ -920,6 +920,14 @@ namespace dlib
...
@@ -920,6 +920,14 @@ namespace dlib
return
split
(
str
,
delim
.
c_str
());
return
split
(
str
,
delim
.
c_str
());
}
}
inline
const
std
::
vector
<
std
::
string
>
split
(
const
char
*
str
,
const
char
*
delim
=
"
\n\r\t
"
)
{
return
split
(
std
::
string
(
str
),
delim
);
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
}
}
...
...
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