/**
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 @c 'a', " and @c 'b'. Notice
- that all trailing delimiters are ignored in this mode, not just the last one,
+ i.e. @c "a::b:" will be tokenized in three tokens @c 'a', @c '' and @c '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.
*/
wxTOKEN_RET_EMPTY,
/**
@class wxStringTokenizer
- @wxheader{tokenzr.h}
wxStringTokenizer helps you to break a string up into a number of tokens.
It replaces the standard C function @c strtok() and also extends it in a
GetNextToken() is called and when it reaches 0, HasMoreTokens()
returns @false.
*/
- int CountTokens() const;
+ size_t CountTokens() const;
/**
Returns the delimiter which ended scan for the last token returned by
@since 2.7.0
*/
- wxChar GetLastDelimiter();
+ wxChar GetLastDelimiter() const;
/**
Returns the next token or empty string if the end of string was reached.
*/
- wxString GetNextToken() const;
+ wxString GetNextToken();
/**
Returns the current position (i.e. one index after the last returned