10 const std::string& _str,
11 const std::string& _delim,
12 std::vector< std::string >& _tok ) {
16 std::string::size_type last_pos = _str.find_first_not_of( _delim, 0 );
20 std::string::size_type pos = _str.find_first_of( _delim, last_pos );
24 while ( std::string::npos != pos || std::string::npos != last_pos ) {
27 std::string tt = _str.substr( last_pos, pos - last_pos );
37 last_pos = _str.find_first_not_of( _delim, pos );
41 pos = _str.find_first_of( _delim, last_pos );