65 |
|
StringTokenizer(const std::string & str, |
66 |
|
const std::string & delim = defaultDelim); |
67 |
|
|
68 |
+ |
/** |
69 |
+ |
* Constructs a string tokenizer for an iterator range [first, last). The characters in the delim argument |
70 |
+ |
* are the delimiters for separating tokens. characters are skipped and only serve as |
71 |
+ |
* separators between tokens. |
72 |
+ |
* @param first begin iterator |
73 |
+ |
* @param last end iterator |
74 |
+ |
* @param delim the delimiters, default value is " \t\n\r". |
75 |
+ |
* @note this is still a little bit java like implementation. Pure c++ one should use TokenIterator. |
76 |
+ |
* Boost's tokenizer class is one of them |
77 |
+ |
*/ |
78 |
|
StringTokenizer(std::string::const_iterator& first, std::string::const_iterator& last, |
79 |
|
const std::string & delim = defaultDelim); |
80 |
|
|