1 #ifndef NDS_DETAIL_STR_UTIL_HH
2 #define NDS_DETAIL_STR_UTIL_HH
12 template <
typename iter >
17 std::vector< std::string >& dest )
19 std::vector< std::string > results;
26 cur = std::find( prev, last, delim );
30 results.push_back( std::string( prev, cur ) );
34 cur = std::find( prev, last, delim );
37 results.push_back( std::string( prev, cur ) );
43 split(
const std::string& inp,
45 std::vector< std::string >& dest )
47 split( inp.begin( ), inp.end( ), delim, dest );
50 inline std::vector< std::string >
51 split(
const std::string& inp,
char delim )
53 std::vector< std::string > retval;
54 split( inp, delim, retval );
60 #endif // NDS_DETAIL_STR_UTIL_HH