diff --git a/dlib/string/string.h b/dlib/string/string.h index 7adfadf49..f782111a9 100644 --- a/dlib/string/string.h +++ b/dlib/string/string.h @@ -920,6 +920,14 @@ namespace dlib return split(str,delim.c_str()); } + inline const std::vector split ( + const char* str, + const char* delim = " \n\r\t" + ) + { + return split(std::string(str),delim); + } + // ---------------------------------------------------------------------------------------- }