Home | History | Annotate | Download | only in libutil++

Lines Matching refs:string

3  * std::string helpers
23 string erase_to_last_of(string const & str, char ch)
25 string result = str;
26 string::size_type pos = result.find_last_of(ch);
27 if (pos != string::npos)
34 string split(string & s, char c)
36 string::size_type i = s.find_first_of(c);
37 if (i == string::npos)
38 return string();
40 string const tail = s.substr(i + 1);
46 bool is_prefix(string const & s, string const & prefix)
54 vector<string> separate_token(string const & str, char sep)
56 vector<string> result;
57 string next;
70 // some stl lacks string::clear()
84 string ltrim(string const & str, string const & totrim)
86 string result(str);
92 string rtrim(string const & str, string const & totrim)
94 string result(str);
100 string trim(string const & str, string const & totrim)
106 string const
112 return string(int_width + fract_width, ' ') + "0";
130 string formatted = os.str();
138 unsigned int op_lexical_cast<unsigned int, string>(string const & str)