X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cc4bfafe5a31cb96f35b3ec9b19fa2b0b3a4eef..ec64d5ca7bbafd4f803b7a1cfbddb85a16c45d6e:/interface/tokenzr.h diff --git a/interface/tokenzr.h b/interface/tokenzr.h index 6250d27dc0..e2cbcc32c8 100644 --- a/interface/tokenzr.h +++ b/interface/tokenzr.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: tokenzr.h -// Purpose: documentation for wxStringTokenizer class +// Purpose: interface of wxStringTokenizer // Author: wxWidgets team // RCS-ID: $Id$ // Licence: wxWindows license @@ -99,8 +99,7 @@ @library{wxbase} @category{data} - @seealso - wxStringTokenize + @see wxStringTokenize() */ class wxStringTokenizer : public wxObject { @@ -123,38 +122,39 @@ public: reaches 0 HasMoreTokens() returns @false. */ - int CountTokens(); + int CountTokens() const; /** Returns the delimiter which ended scan for the last token returned by GetNextToken() or @c NUL if there had been no calls to this function yet or if it returned the trailing empty token in @c wxTOKEN_RET_EMPTY_ALL mode. - This function is new since wxWidgets version 2.7.0 + + @wxsince{2.7.0} */ wxChar GetLastDelimiter(); /** Returns the next token or empty string if the end of string was reached. */ - wxString GetNextToken(); + wxString GetNextToken() const; /** Returns the current position (i.e. one index after the last returned token or 0 if GetNextToken() has never been called) in the original string. */ - size_t GetPosition(); + size_t GetPosition() const; /** Returns the part of the starting string without all token already extracted. */ - wxString GetString(); + wxString GetString() const; /** Returns @true if the tokenizer has further tokens, @false if none are left. */ - bool HasMoreTokens(); + bool HasMoreTokens() const; /** Initializes the tokenizer. @@ -165,3 +165,4 @@ public: const wxString& delims = " \t\r\n", wxStringTokenizerMode mode = wxTOKEN_DEFAULT); }; +