Public Methods | |
Constructors | |
XMLStringTokenizer (const XMLCh *const srcStr) | |
XMLStringTokenizer (const XMLCh *const srcStr, const XMLCh *const delim) | |
Destructor. | |
Management Function | |
bool | hasMoreTokens () |
int | countTokens () |
XMLCh * | nextToken () |
The XMLStringTokenizer methods do not distinguish among identifiers, numbers, and quoted strings, nor do they recognize and skip comments
A XMLStringTokenizer object internally maintains a current position within the string to be tokenized. Some operations advance this current position past the characters processed.
|
Constructs a string tokenizer for the specified string. The tokenizer uses the default delimiter set, which is "
|
|
Constructs a string tokenizer for the specified string. The characters in the delim argument are the delimiters for separating tokens. Delimiter characters themselves will not be treated as tokens.
|
|
Calculates the number of times that this tokenizer's nextToken method can be called to return a valid token. The current position is not advanced. Returns the number of tokens remaining in the string using the current delimiter set. |
|
Tests if there are more tokens available from this tokenizer's string. Returns true if and only if there is at least one token in the string after the current position; false otherwise. |
|
Returns the next token from this string tokenizer. Function allocated, function managed (fafm). The calling function does not need to worry about deleting the returned pointer. |