#include <xalanc/PlatformSupport/StringTokenizer.hpp>
Definition at line 40 of file StringTokenizer.hpp.
◆ size_type
◆ StringTokenizer() [1/4]
Constructs a tokenizer for the target string.
No copies of any input strings are made.
- Parameters
-
theString | string to tokenize |
theTokens | string of delimiters used to parse target, default is " \t\n\r" |
fReturnTokens | if true, delimiter characters are also returned as tokens, default is false |
◆ StringTokenizer() [2/4]
xalanc::StringTokenizer::StringTokenizer |
( |
const XalanDOMString & |
theString, |
|
|
const XalanDOMChar * |
theTokens = s_defaultTokens , |
|
|
bool |
fReturnTokens = false |
|
) |
| |
Constructs a tokenizer for the target string.
No copies of any input strings are made.
- Parameters
-
theString | string to tokenize |
theTokens | string of delimiters used to parse target, default is " \t\n\r" |
fReturnTokens | if true, delimiter characters are also returned as tokens, default is false |
◆ StringTokenizer() [3/4]
xalanc::StringTokenizer::StringTokenizer |
( |
const XalanDOMChar * |
theString, |
|
|
const XalanDOMChar * |
theTokens = s_defaultTokens , |
|
|
bool |
fReturnTokens = false |
|
) |
| |
Constructs a tokenizer for the target string.
No copies of any input strings are made.
- Parameters
-
theString | string to tokenize |
theTokens | string of delimiters used to parse target. |
fReturnTokens | if true, delimiter characters are also returned as tokens, default is false |
◆ StringTokenizer() [4/4]
xalanc::StringTokenizer::StringTokenizer |
( |
const XalanDOMChar * |
theString, |
|
|
const XalanDOMString & |
theTokens, |
|
|
bool |
fReturnTokens = false |
|
) |
| |
Constructs a tokenizer for the target string.
No copies of any input strings are made.
- Parameters
-
theString | string to tokenize |
theTokens | string of delimiters used to parse target. |
fReturnTokens | if true, delimiter characters are also returned as tokens, default is false |
◆ ~StringTokenizer()
xalanc::StringTokenizer::~StringTokenizer |
( |
| ) |
|
◆ countTokens()
size_type xalanc::StringTokenizer::countTokens |
( |
| ) |
const |
Count the number of tokens yet to be parsed.
- Returns
- number of remaining tokens
◆ FindNextDelimiterIndex()
◆ hasMoreTokens()
bool xalanc::StringTokenizer::hasMoreTokens |
( |
| ) |
const |
Determine if there are tokens remaining.
- Returns
- true if there are more tokens
◆ nextToken()
Retrieve the next token to be parsed; behavior is undefined if there are no more tokens.
- Parameters
-
theToken | next token string |
◆ reset()
void xalanc::StringTokenizer::reset |
( |
| ) |
|
|
inline |
◆ s_defaultTokens
const XalanDOMChar xalanc::StringTokenizer::s_defaultTokens[] |
|
static |
The documentation for this class was generated from the following file: