NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <tinyxml2.h>
Public Types | |
enum | Mode { NEEDS_ENTITY_PROCESSING = 0x01 , NEEDS_NEWLINE_NORMALIZATION = 0x02 , NEEDS_WHITESPACE_COLLAPSING = 0x04 , TEXT_ELEMENT = NEEDS_ENTITY_PROCESSING | NEEDS_NEWLINE_NORMALIZATION , TEXT_ELEMENT_LEAVE_ENTITIES = NEEDS_NEWLINE_NORMALIZATION , ATTRIBUTE_NAME = 0 , ATTRIBUTE_VALUE = NEEDS_ENTITY_PROCESSING | NEEDS_NEWLINE_NORMALIZATION , ATTRIBUTE_VALUE_LEAVE_ENTITIES = NEEDS_NEWLINE_NORMALIZATION , COMMENT = NEEDS_NEWLINE_NORMALIZATION } |
Public Member Functions | |
StrPair () | |
~StrPair () | |
void | Set (char *start, char *end, int flags) |
const char * | GetStr () |
bool | Empty () const |
void | SetInternedStr (const char *str) |
void | SetStr (const char *str, int flags=0) |
char * | ParseText (char *in, const char *endTag, int strFlags, int *curLineNumPtr) |
char * | ParseName (char *in) |
void | TransferTo (StrPair *other) |
void | Reset () |
Private Types | |
enum | { NEEDS_FLUSH = 0x100 , NEEDS_DELETE = 0x200 } |
Private Member Functions | |
void | CollapseWhitespace () |
StrPair (const StrPair &other) | |
void | operator= (const StrPair &other) |
Private Attributes | |
int | _flags |
char * | _start |
char * | _end |
Definition at line 136 of file tinyxml2.h.
|
private |
Enumerator | |
---|---|
NEEDS_FLUSH | |
NEEDS_DELETE |
Definition at line 186 of file tinyxml2.h.
Definition at line 139 of file tinyxml2.h.
|
inline |
Definition at line 152 of file tinyxml2.h.
tinyxml2::StrPair::~StrPair | ( | ) |
Definition at line 152 of file tinyxml2.cpp.
References Reset().
|
private |
|
private |
Definition at line 252 of file tinyxml2.cpp.
References _flags, _start, tinyxml2::XMLUtil::IsWhiteSpace(), NEEDS_DELETE, tinyxml2::XMLUtil::SkipWhiteSpace(), and TIXMLASSERT.
Referenced by GetStr().
|
inline |
Definition at line 166 of file tinyxml2.h.
Referenced by tinyxml2::XMLDocument::ErrorStr(), tinyxml2::XMLNode::ParseDeep(), and tinyxml2::XMLElement::ParseDeep().
const char * tinyxml2::StrPair::GetStr | ( | ) |
Definition at line 281 of file tinyxml2.cpp.
References _end, _flags, _start, CollapseWhitespace(), CR, tinyxml2::entities, tinyxml2::XMLUtil::GetCharacterRef(), tinyxml2::Entity::length, LF, NEEDS_DELETE, NEEDS_ENTITY_PROCESSING, NEEDS_FLUSH, NEEDS_NEWLINE_NORMALIZATION, NEEDS_WHITESPACE_COLLAPSING, tinyxml2::NUM_ENTITIES, tinyxml2::Entity::pattern, TIXMLASSERT, and tinyxml2::Entity::value.
Referenced by tinyxml2::XMLDocument::ErrorStr(), tinyxml2::XMLAttribute::Name(), tinyxml2::XMLNode::ParseDeep(), tinyxml2::XMLNode::Value(), and tinyxml2::XMLAttribute::Value().
|
private |
char * tinyxml2::StrPair::ParseName | ( | char * | in | ) |
Definition at line 232 of file tinyxml2.cpp.
References tinyxml2::XMLUtil::IsNameChar(), tinyxml2::XMLUtil::IsNameStartChar(), and Set().
Referenced by tinyxml2::XMLAttribute::ParseDeep(), and tinyxml2::XMLElement::ParseDeep().
char * tinyxml2::StrPair::ParseText | ( | char * | in, |
const char * | endTag, | ||
int | strFlags, | ||
int * | curLineNumPtr | ||
) |
Definition at line 207 of file tinyxml2.cpp.
References Set(), and TIXMLASSERT.
Referenced by tinyxml2::XMLAttribute::ParseDeep(), tinyxml2::XMLText::ParseDeep(), tinyxml2::XMLComment::ParseDeep(), tinyxml2::XMLDeclaration::ParseDeep(), and tinyxml2::XMLUnknown::ParseDeep().
void tinyxml2::StrPair::Reset | ( | ) |
Definition at line 183 of file tinyxml2.cpp.
References _end, _flags, _start, and NEEDS_DELETE.
Referenced by tinyxml2::XMLDocument::ClearError(), tinyxml2::XMLDocument::SetError(), SetStr(), TransferTo(), and ~StrPair().
|
inline |
Definition at line 155 of file tinyxml2.h.
References TIXMLASSERT.
Referenced by ParseName(), and ParseText().
|
inline |
Definition at line 170 of file tinyxml2.h.
Referenced by tinyxml2::XMLNode::SetValue().
void tinyxml2::StrPair::SetStr | ( | const char * | str, |
int | flags = 0 |
||
) |
Definition at line 194 of file tinyxml2.cpp.
References _end, _flags, _start, NEEDS_DELETE, Reset(), and TIXMLASSERT.
Referenced by tinyxml2::XMLAttribute::SetAttribute(), tinyxml2::XMLDocument::SetError(), tinyxml2::XMLAttribute::SetName(), and tinyxml2::XMLNode::SetValue().
void tinyxml2::StrPair::TransferTo | ( | StrPair * | other | ) |
Definition at line 158 of file tinyxml2.cpp.
References _end, _flags, _start, Reset(), and TIXMLASSERT.
Referenced by tinyxml2::XMLNode::ParseDeep().
|
private |
Definition at line 193 of file tinyxml2.h.
Referenced by GetStr(), Reset(), SetStr(), and TransferTo().
|
private |
Definition at line 191 of file tinyxml2.h.
Referenced by CollapseWhitespace(), GetStr(), Reset(), SetStr(), and TransferTo().
|
private |
Definition at line 192 of file tinyxml2.h.
Referenced by CollapseWhitespace(), GetStr(), Reset(), SetStr(), and TransferTo().