Lines Matching defs:string
9 #include <string>
14 // StringTokenizerT is a simple string tokenizer class. It works like an
16 // refer to the next token in the input string. The user may optionally
37 // std::string input = "no-cache=\"foo, bar\", private";
53 // std::string input = "text/html; charset=UTF-8; foo=bar";
93 // The string object must live longer than the tokenizer. In particular, this
95 // blocks the most obvious instances of this (e.g. passing a string literal to
97 StringTokenizerT(const str& string, const str& delims) {
98 Init(string.begin(), string.end(), delims);
101 // Don't allow temporary strings to be used with string tokenizer, since
102 // Init() would otherwise save iterators to a temporary string.
118 // within a quoted string, then the next character is skipped.
131 // Start iterating through tokens from the beginning of the string.
242 typedef StringTokenizerT<std::string, std::string::const_iterator>
246 typedef StringTokenizerT<std::string, const char*> CStringTokenizer;