Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ANTLRUtil.hpp File Reference

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

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_USE_NAMESPACE std    const
 

get the current marked characters as a string

Warning:
it may treat 0 and EOF values wrong

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:
IOException  if something is fishy. E.g. malformed quoting or missing '='


Generated on Wed Nov 3 12:59:08 2004 for Lemur Toolkit by doxygen1.2.18