29 for (
int c = 0;
c < 128; ++
c)
32 if ((
c >=
'a' &&
c <=
'z') || (
c >=
'A' &&
c <=
'Z') ||
c ==
'_') {
34 }
else if (
c >=
'0' &&
c <=
'9') {
36 }
else if (
c ==
' ' ||
c ==
'\t') {
41 in_.
stream().exceptions(std::ios_base::badbit);
47 in_.
stream().clear(std::ios_base::goodbit);
48 in_.
stream().exceptions(std::ios_base::goodbit);
53 #ifdef DEBUG_TOKENIZER 124 case '[':
case ']':
case '/':
case '\n':
case '=':
case ',':
case '+':
164 for (; *cmd; ++cmd) {
178 std::string *dst =
nullptr;
bool is_space(int c) const
const token & next_token()
unsigned in
If equal to search_counter, the node is off the list.
bool is_alnum(int c) const
Some defines: VERSION, PACKAGE, MIN_SAVEGAME_VERSION.
std::istream & stream()
Returns the owned stream.
bool skip_command(char const *cmd)
Returns true if the next characters are the one from cmd followed by a space.