mirror of https://github.com/davisking/dlib.git
Made split() work on char* strings.
This commit is contained in:
parent
e8276602c1
commit
885a27c070
|
@ -920,6 +920,14 @@ namespace dlib
|
|||
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);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue