Lines Matching defs:string
9 #include <string>
15 // StringTokenizerT is a simple string tokenizer class. It works like an
17 // refer to the next token in the input string. The user may optionally
20 // Warning: be careful not to pass a C string into the 2-arg constructor:
22 // This will create a temporary std::string, save the begin() and end()
23 // iterators, and then the string will be freed before we actually start
25 // Instead, use a std::string or use the 3 arg constructor of CStringTokenizer.
46 // std::string input = "no-cache=\"foo, bar\", private";
62 // std::string input = "text/html; charset=UTF-8; foo=bar";
102 // The string object must live longer than the tokenizer. (In particular this
104 StringTokenizerT(const str& string,
106 Init(string.begin(), string.end(), delims);
122 // within a quoted string, then the next character is skipped.
135 // Start iterating through tokens from the beginning of the string.
252 typedef StringTokenizerT<std::string, std::string::const_iterator>
256 typedef StringTokenizerT<std::string, const char*> CStringTokenizer;