|
CartoType API
|
#include <cartotype_string_tokenizer.h>
Public Member Functions | |
| CT_IMPORT | TStringTokenizer (const MString &aString, const MString *aSeparators=0, const MString *aSingleCharacterTokens=0) |
| CT_IMPORT int32 | TokensLeft () const |
| CT_IMPORT bool | HasMoreTokens () const |
| CT_IMPORT TResult | NextToken (TText &aToken) |
A class to find all the tokens in a string. A token is a sequence of characters that contains no separators, or a single character from a specified list.
Tokens are separated by optional separators, which also may precede the first token and follow the last. If no separators are specified, only word spaces (U+0020) are allowed as separators.
Only separator characters from the basic multilingual plane (U+0000...U+FFFF) are at present supported.
| CT_EXPORT TStringTokenizer::TStringTokenizer | ( | const MString & | aString, |
| const MString * | aSeparators = 0, |
||
| const MString * | aSingleCharacterTokens = 0 |
||
| ) |
Construct a string tokenizer, optionally specifying separators and single-character tokens.
| CT_EXPORT bool TStringTokenizer::HasMoreTokens | ( | ) | const |
Test if there are more tokens available from this tokenizer's string.
Get the next token from the string. If there is no token return KErrorEndOfData.
| CT_EXPORT int32 TStringTokenizer::TokensLeft | ( | ) | const |
Return the number of tokens remaining in the string but do not advance the current position.
1.7.5.1