![]() |
Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
![]() |
#include <FXStringTokenizer.h>
Public Methods | |
FXStringTokenizer (const FXString &s="", const FXString &seps="\t\n\r", FXuint opts=TOKENIZER_NORMAL) | |
FXStringTokenizer (const FXString &s, const FXchar *seps, FXuint opts=TOKENIZER_NORMAL) | |
FXStringTokenizer (const FXString &s, const FXchar sep, FXuint opts=TOKENIZER_NORMAL) | |
FXint | length () |
FXString | next () |
FXbool | hasNext () |
FXString | prev () |
FXbool | hasPrev () |
void | reset () |
void | resetEnd () |
FXString | remaining () const |
FXString | begining () const |
void | setSeperator (const FXchar sep) |
void | setSeperator (const FXchar *seps) |
void | setSeperators (const FXString &seps) |
void | addSeperator (const FXchar sep) |
void | addSeperators (const FXchar *seps) |
void | addSeperators (const FXString &seps) |
FXString | getSeperators () const |
void | setText (const FXString &s) |
FXString | getText () const |
FXStringTokenizer & | operator= (const FXStringTokenizer &s) |
FXStringTokenizer & | operator= (const FXString &s) |
FXchar & | operator[] (FXint i) |
const FXchar & | operator[] (FXint i) const |
virtual | ~FXStringTokenizer () |
Friends | |
FXbool | operator== (const FXStringTokenizer &s1, const FXStringTokenizer &s2) |
FXbool | operator== (const FXString &s1, const FXStringTokenizer &s2) |
FXbool | operator== (const FXStringTokenizer &s1, const FXString &s2) |
FXbool | operator!= (const FXStringTokenizer &s1, const FXStringTokenizer &s2) |
FXbool | operator!= (const FXString &s1, const FXStringTokenizer &s2) |
FXbool | operator!= (const FXStringTokenizer &s1, const FXString &s2) |
FXStream & | operator<< (FXStream &store, const FXStringTokenizer &s) |
FXStream & | operator>> (FXStream &store, FXStringTokenizer &s) |
Note: 1. The seperators are single characters such as tab, comma's. 2. You can use multiple seperators at any one time. 3. It will skip over multiple adjacent seperators, so as to retrieve the next/previous token. 4. You can enable single and/or double quoting mode so as to avoid seperating tokens within the single/double quotes. If a double quote occurs inside a pair of single quotes, then the double quote will be broken, since it occurs within a matched pair. This applies to the other case - a single quote will be broken if matched within a double quote pair. 5. Double/single quotes can be uses as the seperators of tokens, though it wont make sense when used with the TOKENIZER_QUOTE_xxx modes.
Definition at line 53 of file FXStringTokenizer.h.
|
constuctors.
|
|
|
|
|
|
dtor.
|
|
length of text.
Definition at line 61 of file FXStringTokenizer.h. |
|
get the next token.
|
|
has more next tokens.
|
|
get the previous token.
|
|
has more previous tokens.
|
|
reset the tokenizer to the start of the string.
Definition at line 76 of file FXStringTokenizer.h. |
|
reset the tokenizer to the end of the string (so you can traverse backwards).
Definition at line 79 of file FXStringTokenizer.h. |
|
get the remaining text left at the end of the string.
Definition at line 82 of file FXStringTokenizer.h. |
|
get the remaining text left at the start of the string.
Definition at line 85 of file FXStringTokenizer.h. |
|
set the seperators.
Definition at line 88 of file FXStringTokenizer.h. |
|
Definition at line 89 of file FXStringTokenizer.h. |
|
Definition at line 90 of file FXStringTokenizer.h. |
|
add other seperators to the current set.
Definition at line 93 of file FXStringTokenizer.h. |
|
Definition at line 94 of file FXStringTokenizer.h. |
|
Definition at line 95 of file FXStringTokenizer.h. |
|
get the current seperators.
Definition at line 98 of file FXStringTokenizer.h. |
|
set the tokenized string to a new string.
|
|
get the text.
Definition at line 104 of file FXStringTokenizer.h. |
|
set the tokenized string to a another tokenizer.
|
|
set the tokenized string to a new string.
|
|
Return a non-const reference to the ith character.
Definition at line 113 of file FXStringTokenizer.h. |
|
Return a const reference to the ith character.
Definition at line 116 of file FXStringTokenizer.h. |
|
Comparison operators ==.
|
|
|
|
|
|
Comparison operators !=.
|
|
|
|
|
|
Saving to a stream.
|
|
Load from a stream.
|