- By default, wxStringTokenizer will behave in the same way as @c strtok() if
- the delimiters string only contains white space characters but, unlike the
- standard function, it will return empty tokens if this is not the case. This
- is helpful for parsing strictly formatted data where the number of fields is
- fixed but some of them may be empty (i.e. @c TAB or comma delimited text
- files).
-
- The behaviour is governed by the last
- @ref wxStringTokenizer::wxstringtokenizer
- constructor/wxStringTokenizer::SetString
- parameter @c mode which may be one of the following:
-
-
-
- @c wxTOKEN_DEFAULT
-
-
- Default behaviour (as described above):
- same as @c wxTOKEN_STRTOK if the delimiter string contains only
- whitespaces, same as @c wxTOKEN_RET_EMPTY otherwise
-
-
- @c wxTOKEN_RET_EMPTY
-
-
- In this mode, the empty tokens in the
- middle of the string will be returned, i.e. @c "a::b:" will be tokenized in
- three tokens 'a', " and 'b'. Notice that all trailing delimiters are ignored
- in this mode, not just the last one, i.e. a string @c "a::b::" would
- still result in the same set of tokens.
-
-
- @c wxTOKEN_RET_EMPTY_ALL
-
-
- In this mode, empty trailing tokens
- (including the one after the last delimiter character) will be returned as
- well. The string @c "a::b:" will be tokenized in four tokens: the already
- mentioned ones and another empty one as the last one and a string
- @c "a::b::" will have five tokens.
-
-
- @c wxTOKEN_RET_DELIMS
-
-
- In this mode, the delimiter character
- after the end of the current token (there may be none if this is the last
- token) is returned appended to the token. Otherwise, it is the same mode as
- @c wxTOKEN_RET_EMPTY. Notice that there is no mode like this one but
- behaving like @c wxTOKEN_RET_EMPTY_ALL instead of
- @c wxTOKEN_RET_EMPTY, use @c wxTOKEN_RET_EMPTY_ALL and
- wxStringTokenizer::GetLastDelimiter to emulate it.
-
-
- @c wxTOKEN_STRTOK
-
-
- In this mode the class behaves exactly like
- the standard @c strtok() function: the empty tokens are never returned.
-
-
-