1 #ifndef CARTOBASE_STREAM_STRINGUTIL_H 2 #define CARTOBASE_STREAM_STRINGUTIL_H 15 static std::vector<std::string>
16 split(
const std::string & s,
const std::string & split_pattern,
17 unsigned maxsplit=0 );
18 static std::vector<std::string>
19 split(
const std::string & s,
20 const std::vector<std::string> & split_patterns,
21 unsigned maxsplit=0 );
22 static std::string
join(
const std::vector<std::string> & strings,
23 const std::string &join_by );
24 static std::string
strip(
const std::string & s,
25 const std::string & chars =
" \n\t" );
static std::string strip(const std::string &s, const std::string &chars=" \")
static std::string join(const std::vector< std::string > &strings, const std::string &join_by)
static std::vector< std::string > split(const std::string &s, const std::string &split_pattern, unsigned maxsplit=0)