43 |
|
|
44 |
|
/** |
45 |
|
* @class StringTokenizer.hpp "util/StringTokenizer.hpp" |
46 |
– |
* |
46 |
|
* @brief The string tokenizer class allows an application to break a string into tokens |
48 |
– |
* |
47 |
|
* The set of delimiters (the characters that separate tokens) may be specified either |
48 |
|
* at creation time or on a per-token basis. |
49 |
|
* An instance of StringTokenizer behaves in one of two ways, depending on whether it was |
59 |
|
* separators between tokens. |
60 |
|
* @param str a string to be parsed. |
61 |
|
* @param delim the delimiters, default value is " \t\n\r". |
62 |
+ |
* @note this is still a little bit java like implementation. Pure c++ one should use TokenIterator. |
63 |
+ |
* Boost's tokenizer class is one of them |
64 |
|
*/ |
65 |
|
StringTokenizer(const std::string & str, |
66 |
|
const std::string & delim = defaultDelim); |