lib/antlr/src/ANTLRUtil.cpp File Reference
#include <antlr/config.hpp>
#include <antlr/IOException.hpp>
#include <iostream>
#include <cctype>
#include <string>
Go to the source code of this file.
Functions | |
std::istream & | eatwhite (std::istream &is) |
Eat whitespace from the input stream. | |
std::string | read_string (std::istream &in) |
Read a string enclosed by '"' from a stream. | |
std::string | read_identifier (std::istream &in) |
void | read_AttributeNValue (std::istream &in, std::string &attribute, std::string &value) |
Read a attribute="value" thing. |
Function Documentation
|
Eat whitespace from the input stream.
Definition at line 22 of file ANTLRUtil.cpp. References ANTLR_USE_NAMESPACE. Referenced by read_identifier(), and read_string(). |
|
Read a attribute="value" thing. Leading whitespace is skipped. Between attribute and '=' no whitespace is allowed. After the '=' it is permitted.
Definition at line 148 of file ANTLRUtil.cpp. References read_identifier(), and read_string(). |
|
Definition at line 112 of file ANTLRUtil.cpp. References ANTLR_USE_NAMESPACE, and eatwhite(). Referenced by read_AttributeNValue(). |
|
Read a string enclosed by '"' from a stream. Also handles escaping of \". Skips leading whitespace.
Definition at line 46 of file ANTLRUtil.cpp. References ANTLR_USE_NAMESPACE, and eatwhite(). Referenced by read_AttributeNValue(). |