Home | History | Annotate | Download | only in emugen

Lines Matching refs:str

21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & delim)
23 if (str.size() == 0 || pos >= str.size()) return "";
25 pos = str.find_first_not_of(WHITESPACE, pos);
28 *last = str.find_first_of(delim, pos);
29 if (*last == std::string::npos) *last = str.size();
30 std::string retval = str.substr(pos, *last - pos);
36 std::string trim(const string & str)
39 string::size_type start = str.find_first_not_of(WHITESPACE, 0);
40 string::size_type end = str.find_last_not_of(WHITESPACE);
44 result = str.substr(start, end - start + 1);