IpeLex::IpeLex | ( | IpeString | str | ) | [explicit] |
Construct lexical analyzer from a string.
IpeString IpeLex::Token | ( | ) |
Return NextToken, but without extracting it.
IpeString IpeLex::NextToken | ( | ) |
Extract next token.
Skips any whitespace before the token. Returns empty string if end of string is reached.
int IpeLex::GetInt | ( | ) |
Extract integer token (skipping whitespace).
int IpeLex::GetHexByte | ( | ) |
Extract byte in hex (skipping whitespace).
unsigned long int IpeLex::GetHexNumber | ( | ) |
Extract hexadecimal token (skipping whitespace).
double IpeLex::GetDouble | ( | ) |
Extract double token (skipping whitespace).
char IpeLex::GetChar | ( | ) | [inline] |
Extract next character (not skipping anything).
void IpeLex::SkipWhitespace | ( | ) |
Skip over whitespace.
IpeLex& IpeLex::operator>> | ( | double & | d | ) | [inline] |
Operator syntax for GetDouble().
void IpeLex::Mark | ( | ) | [inline] |
Mark the current position.
void IpeLex::FromMark | ( | ) | [inline] |
Reset reader to the marked position.
bool IpeLex::Eos | ( | ) | const [inline] |
Return true if at end of string (not even whitespace left).