#include <StringTokenizer.h>
◆ tcStringTokenizer()
tcStringTokenizer::tcStringTokenizer |
( |
std::string |
ahToTokenize, |
|
|
char |
ahDelimeter = ' ' |
|
) |
| |
◆ hasNext()
bool tcStringTokenizer::hasNext |
( |
| ) |
|
Tests if there are tokens remaining.
- Returns
- true if there are tokens remaining; false otherwise
◆ next()
std::string tcStringTokenizer::next |
( |
| ) |
|
Returns the next token as a std::string.
- Returns
- the next token.
◆ nextBool()
bool tcStringTokenizer::nextBool |
( |
bool * |
apRet | ) |
|
Converts the next token to a bool. a 'true' token starts with [1yYtT]
- Parameters
-
pointer | to the return location |
- Returns
- true if the next token was able to be converted into an bool; false otherwise
◆ nextDouble()
bool tcStringTokenizer::nextDouble |
( |
double * |
apRet | ) |
|
Converts the next token to a double.
- Parameters
-
pointer | to the return location |
- Returns
- true if the next token was able to be converted into a double; false otherwise
◆ nextFloat()
bool tcStringTokenizer::nextFloat |
( |
float * |
apRet | ) |
|
Converts the next token to a float.
- Parameters
-
pointer | to the return location |
- Returns
- true if the next token was able to be converted into a float; false otherwise
◆ nextInt()
bool tcStringTokenizer::nextInt |
( |
int32 * |
apRet | ) |
|
Converts the next token to an int.
- Parameters
-
pointer | to the return location |
- Returns
- true if the next token was able to be converted into an int; false otherwise
◆ nextIntHex()
bool tcStringTokenizer::nextIntHex |
( |
int32 * |
apRet | ) |
|
Converts the next token into an int interpretting it as hex
- Parameters
-
pointer | to the return location |
- Returns
- true if the next token was able to be converted into an int; false otherwise
◆ nextUIntHex()
bool tcStringTokenizer::nextUIntHex |
( |
uint32 * |
apRet | ) |
|
Converts the next token into an unsigned int interpretting it as hex
- Parameters
-
pointer | to the return location |
- Returns
- true if the next token was able to be converted into an int; false otherwise
◆ nextUnsigned()
bool tcStringTokenizer::nextUnsigned |
( |
uint32 * |
apRet | ) |
|
Converts the next token to an unsigned int.
- Parameters
-
pointer | to the return location |
- Returns
- true if the next token was able to be converted into an unsigned int; false otherwise
The documentation for this class was generated from the following files: