Commit 885a27c0 authored by Davis King's avatar Davis King

Made split() work on char* strings.

parent e8276602
......@@ -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);
}
// ----------------------------------------------------------------------------------------
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment