antlr/include/antlr/ANTLRUtil.hpp File Reference

#include <antlr/config.hpp>
#include <iostream>

Include dependency graph for ANTLRUtil.hpp:

Go to the source code of this file.

Functions

 ANTLR_USE_NAMESPACE (std) istream &eatwhite(ANTLR_USE_NAMESPACE(std) istream &is)
void read_AttributeNValue (ANTLR_USE_NAMESPACE(std) istream &in, ANTLR_USE_NAMESPACE(std) string &attribute, ANTLR_USE_NAMESPACE(std) string &value)


Function Documentation

ANTLR_API ANTLR_USE_NAMESPACE ( std   ) 

Eat whitespace from the input stream

Parameters:
is the stream to read from
Read a string enclosed by '"' from a stream. Also handles escaping of \". Skips leading whitespace.
Parameters:
in the istream to read from.
Returns:
the string read from file exclusive the '"'
Exceptions:
ios_base::failure if string is badly formatted

void read_AttributeNValue ( ANTLR_USE_NAMESPACE(std) istream &  in,
ANTLR_USE_NAMESPACE(std) string &  attribute,
ANTLR_USE_NAMESPACE(std) string &  value 
)

Read a attribute="value" thing. Leading whitespace is skipped. Between attribute and '=' no whitespace is allowed. After the '=' it is permitted.

Parameters:
in the istream to read from.
attribute string the attribute name is put in
value string the value of the attribute is put in
Exceptions:
ios_base::failure if something is fishy. E.g. malformed quoting or missing '='


Generated on Tue Mar 31 20:19:24 2009 for ctrump by  doxygen 1.5.6