Searched refs:totrim (Results 1 – 2 of 2) sorted by relevance
84 string ltrim(string const & str, string const & totrim) in ltrim() argument88 return result.erase(0, result.find_first_not_of(totrim)); in ltrim()92 string rtrim(string const & str, string const & totrim) in rtrim() argument96 return result.erase(result.find_last_not_of(totrim) + 1); in rtrim()100 string trim(string const & str, string const & totrim) in trim() argument102 return rtrim(ltrim(str, totrim), totrim); in trim()
49 std::string ltrim(std::string const & str, std::string const & totrim = "\t ");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 ");