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

Lines Matching refs:string

3  * std::string helpers
15 #include <string>
21 * @param str string
25 * occurence of ch from and return the string
27 std::string erase_to_last_of(std::string const & str, char ch);
29 /// split string s by first occurence of char c, returning the second part.
31 std::string split(std::string & s, char c);
34 /// if prefix is an empty string
35 bool is_prefix(std::string const & s, std::string const & prefix);
38 * @param str the string to tokenize
41 * separate fields in a string in a list of token; field are
46 std::vector<std::string> separate_token(std::string const & str, char sep);
48 /// remove trim chars from start of input string return the new string
49 std::string ltrim(std::string const & str, std::string const & totrim = "\t ");
50 /// remove trim chars from end of input string return the new string
51 std::string rtrim(std::string const & str, std::string const & totrim = "\t ");
53 std::string trim(std::string const & str, std::string const & totrim = "\t ");
64 * returned string will be wider. The returned string is never
68 std::string const
105 unsigned int op_lexical_cast<unsigned int>(std::string const & str);