Simpatico
v1.10
|
#include <XmlBase.h>
Public Member Functions | |
XmlBase () | |
Constructor. More... | |
~XmlBase () | |
Destructor. More... | |
void | setString (const std::string &string, int cursor=0) |
Initialize string and cursor. More... | |
void | setCursor (int cursor) |
Set cursor. More... | |
void | skip () |
Skip leading white space, if any. More... | |
void | next () |
Advance to the next character. More... | |
const std::string & | string () const |
Return the associated string. More... | |
int | cursor () const |
Return the index of the current character. More... | |
int | c () const |
Return the current character. More... | |
bool | isEnd () const |
Has the cursor reached the end of the string? More... | |
Util::XmlBase::XmlBase | ( | ) |
Constructor.
Definition at line 16 of file XmlBase.cpp.
Util::XmlBase::~XmlBase | ( | ) |
Destructor.
Definition at line 26 of file XmlBase.cpp.
void Util::XmlBase::setString | ( | const std::string & | string, |
int | cursor = 0 |
||
) |
Initialize string and cursor.
Definition at line 32 of file XmlBase.cpp.
References setCursor(), and string().
Referenced by Util::XmlAttribute::match(), Util::XmlEndTag::match(), Util::XmlXmlTag::match(), and Util::XmlStartTag::matchLabel().
void Util::XmlBase::setCursor | ( | int | cursor | ) |
Set cursor.
String must already be set.
Definition at line 42 of file XmlBase.cpp.
References cursor(), and UTIL_THROW.
Referenced by Util::XmlAttribute::match(), and setString().
|
inline |
Skip leading white space, if any.
Definition at line 88 of file XmlBase.h.
Referenced by Util::XmlAttribute::match(), Util::XmlEndTag::match(), Util::XmlXmlTag::match(), Util::XmlStartTag::matchAttribute(), and Util::XmlStartTag::matchLabel().
|
inline |
Advance to the next character.
Definition at line 104 of file XmlBase.h.
Referenced by Util::XmlAttribute::match(), Util::XmlEndTag::match(), Util::XmlXmlTag::match(), Util::XmlStartTag::matchAttribute(), and Util::XmlStartTag::matchLabel().
|
inline |
Return the associated string.
Definition at line 118 of file XmlBase.h.
Referenced by Util::XmlStartTag::finish(), Util::XmlAttribute::match(), Util::XmlEndTag::match(), Util::XmlXmlTag::match(), Util::XmlStartTag::matchLabel(), and setString().
|
inline |
Return the index of the current character.
Definition at line 124 of file XmlBase.h.
Referenced by Util::XmlAttribute::match(), Util::XmlEndTag::match(), Util::XmlXmlTag::match(), Util::XmlStartTag::matchLabel(), and setCursor().
|
inline |
Return the current character.
Definition at line 130 of file XmlBase.h.
Referenced by Util::XmlAttribute::match(), Util::XmlEndTag::match(), Util::XmlXmlTag::match(), Util::XmlStartTag::matchAttribute(), and Util::XmlStartTag::matchLabel().
|
inline |
Has the cursor reached the end of the string?
Definition at line 136 of file XmlBase.h.
Referenced by Util::XmlAttribute::match(), Util::XmlEndTag::match(), Util::XmlXmlTag::match(), Util::XmlStartTag::matchAttribute(), and Util::XmlStartTag::matchLabel().