27#if defined(ANDROID_NDK) || defined(__BORLANDC__) || defined(__QNXNTO__)
35#if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE)
48 const int result = vsnprintf_s( buffer, size, _TRUNCATE,
format, va );
55 const int result = vsnprintf_s( buffer, size, _TRUNCATE,
format, va );
59 #define TIXML_VSCPRINTF _vscprintf
60 #define TIXML_SSCANF sscanf_s
63 #define TIXML_SNPRINTF _snprintf
64 #define TIXML_VSNPRINTF _vsnprintf
65 #define TIXML_SSCANF sscanf
66 #if (_MSC_VER < 1400 ) && (!defined WINCE)
68 #define TIXML_VSCPRINTF _vscprintf
76 char* str =
new char[len]();
77 const int required = _vsnprintf(str, len,
format, va);
79 if ( required != -1 ) {
92 #define TIXML_SNPRINTF snprintf
93 #define TIXML_VSNPRINTF vsnprintf
96 int len = vsnprintf( 0, 0,
format, va );
100 #define TIXML_SSCANF sscanf
104 #define TIXML_FSEEK _fseeki64
105 #define TIXML_FTELL _ftelli64
106#elif defined(__APPLE__) || defined(__FreeBSD__)
107 #define TIXML_FSEEK fseeko
108 #define TIXML_FTELL ftello
109#elif defined(__unix__) && defined(__x86_64__)
110 #define TIXML_FSEEK fseeko64
111 #define TIXML_FTELL ftello64
113 #define TIXML_FSEEK fseek
114 #define TIXML_FTELL ftell
160 if (
this == other ) {
198 size_t len = strlen( str );
200 _start =
new char[ len+1 ];
201 memcpy(
_start, str, len+1 );
214 const char endChar = *endTag;
215 size_t length = strlen( endTag );
219 if ( *p == endChar && strncmp( p, endTag, length ) == 0 ) {
220 Set( start, p, strFlags );
222 }
else if (*p ==
'\n') {
241 char*
const start = p;
298 if ( *(p+1) ==
LF ) {
308 if ( *(p+1) ==
CR ) {
323 if ( *(p+1) ==
'#' ) {
324 const int buflen = 10;
325 char buf[buflen] = { 0 };
328 if ( adjusted == 0 ) {
337 memcpy( q, buf, len );
342 bool entityFound =
false;
346 && *( p + entity.
length + 1 ) ==
';' ) {
355 if ( !entityFound ) {
391 static const char* defTrue =
"true";
392 static const char* defFalse =
"false";
404 const unsigned char* pu =
reinterpret_cast<const unsigned char*
>(p);
419 const unsigned long BYTE_MASK = 0xBF;
420 const unsigned long BYTE_MARK = 0x80;
421 const unsigned long FIRST_BYTE_MARK[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
426 else if ( input < 0x800 ) {
429 else if ( input < 0x10000 ) {
432 else if ( input < 0x200000 ) {
447 *output =
static_cast<char>((input | BYTE_MARK) & BYTE_MASK);
452 *output =
static_cast<char>((input | BYTE_MARK) & BYTE_MASK);
457 *output =
static_cast<char>((input | BYTE_MARK) & BYTE_MASK);
462 *output =
static_cast<char>(input | FIRST_BYTE_MARK[*length]);
475 if ( *(p+1) ==
'#' && *(p+2) ) {
476 unsigned long ucs = 0;
480 static const char SEMICOLON =
';';
482 if ( *(p+2) ==
'x' ) {
489 q = strchr( q, SEMICOLON );
499 while ( *q !=
'x' ) {
500 unsigned int digit = 0;
502 if ( *q >=
'0' && *q <=
'9' ) {
505 else if ( *q >=
'a' && *q <=
'f' ) {
506 digit = *q -
'a' + 10;
508 else if ( *q >=
'A' && *q <=
'F' ) {
509 digit = *q -
'A' + 10;
515 TIXMLASSERT( digit == 0 || mult <= UINT_MAX / digit );
516 const unsigned int digitScaled = mult * digit;
531 q = strchr( q, SEMICOLON );
541 while ( *q !=
'#' ) {
542 if ( *q >=
'0' && *q <=
'9' ) {
543 const unsigned int digit = *q -
'0';
545 TIXMLASSERT( digit == 0 || mult <= UINT_MAX / digit );
546 const unsigned int digitScaled = mult * digit;
560 return p + delta + 1;
602 TIXML_SNPRINTF(buffer, bufferSize,
"%lld",
static_cast<long long>(v));
616 *value =
static_cast<int>(v);
639 if (
ToInt( str, &ival )) {
640 *value = (ival==0) ?
false :
true;
643 static const char* TRUE_VALS[] = {
"true",
"True",
"TRUE", 0 };
644 static const char* FALSE_VALS[] = {
"false",
"False",
"FALSE", 0 };
646 for (
int i = 0; TRUE_VALS[i]; ++i) {
652 for (
int i = 0; FALSE_VALS[i]; ++i) {
683 unsigned long long v = 0;
685 *value =
static_cast<int64_t
>(v);
692 *value =
static_cast<int64_t
>(v);
701 unsigned long long v = 0;
703 *value = (uint64_t)v;
714 char*
const start = p;
724 static const char* xmlHeader = {
"<?" };
725 static const char* commentHeader = {
"<!--" };
726 static const char* cdataHeader = {
"<![CDATA[" };
727 static const char* dtdHeader = {
"<!" };
728 static const char* elementHeader = {
"<" };
730 static const int xmlHeaderLen = 2;
731 static const int commentHeaderLen = 4;
732 static const int cdataHeaderLen = 9;
733 static const int dtdHeaderLen = 2;
734 static const int elementHeaderLen = 1;
740 returnNode = CreateUnlinkedNode<XMLDeclaration>(
_commentPool );
745 returnNode = CreateUnlinkedNode<XMLComment>(
_commentPool );
747 p += commentHeaderLen;
757 returnNode = CreateUnlinkedNode<XMLUnknown>(
_commentPool );
762 returnNode = CreateUnlinkedNode<XMLElement>(
_elementPool );
764 p += elementHeaderLen;
767 returnNode = CreateUnlinkedNode<XMLText>(
_textPool );
785 if ( !node->Accept( visitor ) ) {
801 _firstChild( 0 ), _lastChild( 0 ),
802 _prev( 0 ), _next( 0 ),
838 if (!clone)
return 0;
870 if ( child->
_prev ) {
873 if ( child->
_next ) {
966 if ( afterThis->
_parent !=
this ) {
970 if ( afterThis == addThis ) {
978 if ( afterThis->
_next == 0 ) {
983 addThis->
_prev = afterThis;
986 afterThis->
_next = addThis;
1077 p = node->
ParseDeep( p, &endTag, curLineNumPtr );
1096 bool wellLocated =
false;
1110 if ( !wellLocated ) {
1121 if ( parentEndTag ) {
1131 bool mismatch =
false;
1132 if ( endTag.
Empty() ) {
1188 if ( element == 0 ) {
1203 if ( this->
CData() ) {
1250 return visitor->
Visit( *
this );
1298 return visitor->
Visit( *
this );
1348 return visitor->
Visit( *
this );
1395 return visitor->
Visit( *
this );
1426 if ( *p !=
'\"' && *p !=
'\'' ) {
1430 const char endTag[2] = { *p, 0 };
1568 _closingType( OPEN ),
1609 int i = defaultValue;
1616 unsigned i = defaultValue;
1623 int64_t i = defaultValue;
1630 uint64_t i = defaultValue;
1637 bool b = defaultValue;
1644 double d = defaultValue;
1651 float f = defaultValue;
1668 if ( node && node->
ToText() ) {
1669 return node->
Value();
1832 int i = defaultValue;
1839 unsigned i = defaultValue;
1846 int64_t i = defaultValue;
1853 uint64_t i = defaultValue;
1860 bool b = defaultValue;
1867 double d = defaultValue;
1874 float f = defaultValue;
1886 last = attrib, attrib = attrib->
_next ) {
1896 last->_next = attrib;
1958 if ( prevAttribute ) {
1960 prevAttribute->
_next = attrib;
1966 prevAttribute = attrib;
1969 else if ( *p ==
'>' ) {
1974 else if ( *p ==
'/' && *(p+1) ==
'>' ) {
1988 if ( attribute == 0 ) {
1993 pool->
Free( attribute );
2116 if ( !node->Accept( visitor ) ) {
2131 "XML_WRONG_ATTRIBUTE_TYPE",
2132 "XML_ERROR_FILE_NOT_FOUND",
2133 "XML_ERROR_FILE_COULD_NOT_BE_OPENED",
2134 "XML_ERROR_FILE_READ_ERROR",
2135 "XML_ERROR_PARSING_ELEMENT",
2136 "XML_ERROR_PARSING_ATTRIBUTE",
2137 "XML_ERROR_PARSING_TEXT",
2138 "XML_ERROR_PARSING_CDATA",
2139 "XML_ERROR_PARSING_COMMENT",
2140 "XML_ERROR_PARSING_DECLARATION",
2141 "XML_ERROR_PARSING_UNKNOWN",
2142 "XML_ERROR_EMPTY_DOCUMENT",
2143 "XML_ERROR_MISMATCHED_ELEMENT",
2144 "XML_ERROR_PARSING",
2145 "XML_CAN_NOT_CONVERT_TEXT",
2147 "XML_ELEMENT_DEPTH_EXCEEDED"
2154 _processEntities( processEntities ),
2156 _whitespaceMode( whitespaceMode ),
2160 _parseCurLineNum( 0 ),
2184 for (
int i = 0; i <
_unlinked.Size(); ++i) {
2199#ifdef TINYXML2_DEBUG
2200 const bool hadError =
Error();
2215#ifdef TINYXML2_DEBUG
2229 if (target ==
this) {
2266 dec->SetValue( str ? str :
"xml version=\"1.0\" encoding=\"UTF-8\"" );
2278static FILE*
callfopen(
const char* filepath,
const char* mode )
2282#if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE)
2284 const errno_t err = fopen_s( &fp, filepath, mode );
2289 FILE* fp = fopen( filepath, mode );
2336 if ( fgetc( fp ) ==
EOF && ferror( fp ) != 0 ) {
2343 unsigned long long filelength;
2345 const long long fileLengthSigned =
TIXML_FTELL( fp );
2347 if ( fileLengthSigned == -1L ) {
2352 filelength =
static_cast<unsigned long long>(fileLengthSigned);
2355 const size_t maxSizeT =
static_cast<size_t>(-1);
2358 if ( filelength >=
static_cast<unsigned long long>(maxSizeT) ) {
2364 if ( filelength == 0 ) {
2369 const size_t size =
static_cast<size_t>(filelength);
2373 if (
read != size ) {
2419 if ( len == 0 || !p || !*p ) {
2423 if ( len ==
static_cast<size_t>(-1) ) {
2453 Accept( &stdoutStreamer );
2472 const size_t BUFFER_SIZE = 1000;
2473 char* buffer =
new char[BUFFER_SIZE];
2476 TIXML_SNPRINTF(buffer, BUFFER_SIZE,
"Error=%s ErrorID=%d (0x%x) Line number=%d",
ErrorIDToName(error),
int(error),
int(error), lineNum);
2479 size_t len = strlen(buffer);
2481 len = strlen(buffer);
2548 _elementJustOpened( false ),
2550 _firstElement( true ),
2554 _processEntities( true ),
2555 _compactMode( compact ),
2564 const unsigned char flagIndex =
static_cast<unsigned char>(entityValue);
2600 fwrite ( data ,
sizeof(
char), size,
_fp);
2604 memcpy( p, data, size );
2625 for(
int i=0; i<depth; ++i ) {
2645 if ( flag[
static_cast<unsigned char>(*q)] ) {
2647 const size_t delta = q - p;
2648 const int toPrint = ( INT_MAX < delta ) ? INT_MAX : static_cast<int>(delta);
2649 Write( p, toPrint );
2652 bool entityPatternPrinted =
false;
2658 entityPatternPrinted =
true;
2662 if ( !entityPatternPrinted ) {
2675 const size_t delta = q - p;
2676 const int toPrint = ( INT_MAX < delta ) ? INT_MAX : static_cast<int>(delta);
2677 Write( p, toPrint );
2690 Write(
reinterpret_cast< const char*
>( bom ) );
2701 if ( compactMode ) {
2808 if (
_depth == 0 && !compactMode) {
2831 Write(
"<![CDATA[" );
2940 if ( element.
Parent() ) {
2945 while ( attribute ) {
2947 attribute = attribute->
Next();
virtual void Free(void *)=0
virtual void SetTracked()=0
void SetStr(const char *str, int flags=0)
void SetInternedStr(const char *str)
void TransferTo(StrPair *other)
void Set(char *start, char *end, int flags)
char * ParseText(char *in, const char *endTag, int strFlags, int *curLineNumPtr)
char * ParseName(char *in)
@ NEEDS_WHITESPACE_COLLAPSING
@ ATTRIBUTE_VALUE_LEAVE_ENTITIES
@ NEEDS_ENTITY_PROCESSING
@ NEEDS_NEWLINE_NORMALIZATION
@ TEXT_ELEMENT_LEAVE_ENTITIES
void CollapseWhitespace()
XMLError QueryFloatValue(float *value) const
See QueryIntValue.
XMLError QueryDoubleValue(double *value) const
See QueryIntValue.
void SetAttribute(const char *value)
Set the attribute to a string value.
void SetName(const char *name)
XMLError QueryUnsignedValue(unsigned int *value) const
See QueryIntValue.
char * ParseDeep(char *p, bool processEntities, int *curLineNumPtr)
XMLError QueryInt64Value(int64_t *value) const
See QueryIntValue.
const char * Name() const
The name of the attribute.
XMLError QueryBoolValue(bool *value) const
See QueryIntValue.
XMLError QueryIntValue(int *value) const
const XMLAttribute * Next() const
The next attribute in the list.
const char * Value() const
The value of the attribute.
XMLError QueryUnsigned64Value(uint64_t *value) const
See QueryIntValue.
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
virtual ~XMLDeclaration()
virtual bool Accept(XMLVisitor *visitor) const
virtual XMLNode * ShallowClone(XMLDocument *document) const
virtual bool ShallowEqual(const XMLNode *compare) const
XMLDeclaration(XMLDocument *doc)
MemPoolT< sizeof(XMLAttribute) > _attributePool
const char * ErrorName() const
void PrintError() const
A (trivial) utility function that prints the ErrorStr() to stdout.
DynArray< XMLNode *, 10 > _unlinked
MemPoolT< sizeof(XMLElement) > _elementPool
char * Identify(char *p, XMLNode **node)
XMLError LoadFile(const char *filename)
bool Error() const
Return true if there was an error parsing the document.
XMLComment * NewComment(const char *comment)
XMLElement * NewElement(const char *name)
void ClearError()
Clears the error flags.
XMLUnknown * NewUnknown(const char *text)
bool ProcessEntities() const
static const char * ErrorIDToName(XMLError errorID)
void MarkInUse(const XMLNode *const)
void Clear()
Clear the document, resetting it to the initial state.
XMLError SaveFile(const char *filename, bool compact=false)
Whitespace WhitespaceMode() const
void Print(XMLPrinter *streamer=0) const
virtual bool Accept(XMLVisitor *visitor) const
void SetError(XMLError error, int lineNum, const char *format,...)
void DeleteNode(XMLNode *node)
MemPoolT< sizeof(XMLComment) > _commentPool
XMLText * NewText(const char *text)
XMLDeclaration * NewDeclaration(const char *text=0)
const char * ErrorStr() const
static const char * _errorNames[XML_ERROR_COUNT]
void DeepCopy(XMLDocument *target) const
MemPoolT< sizeof(XMLText) > _textPool
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
const char * GetText() const
double DoubleAttribute(const char *name, double defaultValue=0) const
See IntAttribute()
XMLAttribute * CreateAttribute()
void SetAttribute(const char *name, const char *value)
Sets the named attribute to value.
XMLError QueryInt64Text(int64_t *uval) const
See QueryIntText()
XMLError QueryUnsigned64Attribute(const char *name, uint64_t *value) const
See QueryIntAttribute()
XMLError QueryBoolAttribute(const char *name, bool *value) const
See QueryIntAttribute()
XMLError QueryUnsignedText(unsigned *uval) const
See QueryIntText()
const XMLAttribute * FindAttribute(const char *name) const
Query a specific attribute in the list.
char * ParseAttributes(char *p, int *curLineNumPtr)
void SetText(const char *inText)
uint64_t Unsigned64Attribute(const char *name, uint64_t defaultValue=0) const
See IntAttribute()
XMLError QueryUnsignedAttribute(const char *name, unsigned int *value) const
See QueryIntAttribute()
int IntText(int defaultValue=0) const
ElementClosingType _closingType
XMLError QueryBoolText(bool *bval) const
See QueryIntText()
float FloatText(float defaultValue=0) const
See QueryIntText()
const char * Attribute(const char *name, const char *value=0) const
unsigned UnsignedText(unsigned defaultValue=0) const
See QueryIntText()
const XMLAttribute * FirstAttribute() const
Return the first attribute in the list.
bool BoolAttribute(const char *name, bool defaultValue=false) const
See IntAttribute()
XMLError QueryDoubleAttribute(const char *name, double *value) const
See QueryIntAttribute()
virtual bool ShallowEqual(const XMLNode *compare) const
int64_t Int64Attribute(const char *name, int64_t defaultValue=0) const
See IntAttribute()
XMLError QueryDoubleText(double *dval) const
See QueryIntText()
bool BoolText(bool defaultValue=false) const
See QueryIntText()
ElementClosingType ClosingType() const
XMLError QueryInt64Attribute(const char *name, int64_t *value) const
See QueryIntAttribute()
XMLDeclaration * InsertNewDeclaration(const char *text)
See InsertNewChildElement()
double DoubleText(double defaultValue=0) const
See QueryIntText()
XMLError QueryIntAttribute(const char *name, int *value) const
XMLError QueryIntText(int *ival) const
int IntAttribute(const char *name, int defaultValue=0) const
void SetName(const char *str, bool staticMem=false)
Set the name of the element.
virtual bool Accept(XMLVisitor *visitor) const
int64_t Int64Text(int64_t defaultValue=0) const
See QueryIntText()
XMLComment * InsertNewComment(const char *comment)
See InsertNewChildElement()
virtual XMLNode * ShallowClone(XMLDocument *document) const
float FloatAttribute(const char *name, float defaultValue=0) const
See IntAttribute()
const char * Name() const
Get the name of an element (which is the Value() of the node.)
XMLElement * InsertNewChildElement(const char *name)
XMLError QueryUnsigned64Text(uint64_t *uval) const
See QueryIntText()
XMLText * InsertNewText(const char *text)
See InsertNewChildElement()
XMLAttribute * FindOrCreateAttribute(const char *name)
XMLError QueryFloatAttribute(const char *name, float *value) const
See QueryIntAttribute()
XMLAttribute * _rootAttribute
void DeleteAttribute(const char *name)
uint64_t Unsigned64Text(uint64_t defaultValue=0) const
See QueryIntText()
XMLError QueryFloatText(float *fval) const
See QueryIntText()
XMLUnknown * InsertNewUnknown(const char *text)
See InsertNewChildElement()
unsigned UnsignedAttribute(const char *name, unsigned defaultValue=0) const
See IntAttribute()
const char * Value() const
void SetValue(const char *val, bool staticMem=false)
virtual XMLText * ToText()
Safely cast to Text, or null.
void InsertChildPreamble(XMLNode *insertThis) const
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
const XMLElement * NextSiblingElement(const char *name=0) const
Get the next (right) sibling element of this node, with an optionally supplied name.
const XMLElement * FirstChildElement(const char *name=0) const
void DeleteChild(XMLNode *node)
XMLNode * DeepClone(XMLDocument *target) const
const XMLNode * Parent() const
Get the parent of this node on the DOM.
const XMLElement * ToElementWithName(const char *name) const
virtual XMLComment * ToComment()
Safely cast to a Comment, or null.
const XMLElement * LastChildElement(const char *name=0) const
virtual XMLDocument * ToDocument()
Safely cast to a Document, or null.
const XMLNode * LastChild() const
Get the last child node, or null if none exists.
const XMLDocument * GetDocument() const
Get the XMLDocument that owns this XMLNode.
virtual XMLNode * ShallowClone(XMLDocument *document) const =0
virtual char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
XMLNode * InsertAfterChild(XMLNode *afterThis, XMLNode *addThis)
virtual XMLElement * ToElement()
Safely cast to an Element, or null.
const XMLElement * PreviousSiblingElement(const char *name=0) const
Get the previous (left) sibling element of this node, with an optionally supplied name.
void Unlink(XMLNode *child)
static void DeleteNode(XMLNode *node)
const XMLNode * FirstChild() const
Get the first child node, or null if none exists.
bool NoChildren() const
Returns true if this node has no children.
XMLNode * InsertFirstChild(XMLNode *addThis)
XMLNode * InsertEndChild(XMLNode *addThis)
const XMLNode * NextSibling() const
Get the next (right) sibling node of this node.
virtual bool VisitExit(const XMLDocument &)
Visit a document.
void PushHeader(bool writeBOM, bool writeDeclaration)
DynArray< char, 20 > _buffer
virtual void PrintSpace(int depth)
void PushText(const char *text, bool cdata=false)
Add a text node.
void OpenElement(const char *name, bool compactMode=false)
void PushDeclaration(const char *value)
bool _entityFlag[ENTITY_RANGE]
virtual bool CompactMode(const XMLElement &)
void PrintString(const char *, bool restrictedEntitySet)
bool _restrictedEntityFlag[ENTITY_RANGE]
void PrepareForNewNode(bool compactMode)
virtual void Putc(char ch)
DynArray< const char *, 10 > _stack
void PushAttribute(const char *name, const char *value)
If streaming, add an attribute to an open element.
virtual bool VisitEnter(const XMLDocument &)
Visit a document.
XMLPrinter(FILE *file=0, bool compact=false, int depth=0)
void PushUnknown(const char *value)
virtual void Print(const char *format,...)
void SealElementIfJustOpened()
virtual bool Visit(const XMLText &text)
Visit a text node.
virtual void CloseElement(bool compactMode=false)
If streaming, close the Element.
void PushComment(const char *comment)
Add a comment.
virtual void Write(const char *data, size_t size)
virtual bool Accept(XMLVisitor *visitor) const
virtual XMLNode * ShallowClone(XMLDocument *document) const
virtual bool ShallowEqual(const XMLNode *compare) const
bool CData() const
Returns true if this is a CDATA text element.
void SetCData(bool isCData)
Declare whether this should be CDATA or standard text.
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
virtual bool Accept(XMLVisitor *visitor) const
XMLUnknown(XMLDocument *doc)
virtual XMLNode * ShallowClone(XMLDocument *document) const
virtual bool ShallowEqual(const XMLNode *compare) const
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
static bool IsNameChar(unsigned char ch)
static bool ToUnsigned(const char *str, unsigned *value)
static bool IsPrefixHex(const char *p)
static void ConvertUTF32ToUTF8(unsigned long input, char *output, int *length)
static bool IsWhiteSpace(char p)
static bool ToFloat(const char *str, float *value)
static void ToStr(int v, char *buffer, int bufferSize)
static const char * GetCharacterRef(const char *p, char *value, int *length)
static const char * writeBoolTrue
static bool IsNameStartChar(unsigned char ch)
static const char * SkipWhiteSpace(const char *p, int *curLineNumPtr)
static bool StringEqual(const char *p, const char *q, int nChar=INT_MAX)
static bool ToInt(const char *str, int *value)
static bool ToDouble(const char *str, double *value)
static const char * writeBoolFalse
static bool ToUnsigned64(const char *str, uint64_t *value)
static bool ToBool(const char *str, bool *value)
static const char * ReadBOM(const char *p, bool *hasBOM)
static void SetBoolSerialization(const char *writeTrue, const char *writeFalse)
static bool ToInt64(const char *str, int64_t *value)
virtual bool VisitExit(const XMLDocument &)
Visit a document.
virtual bool VisitEnter(const XMLDocument &)
Visit a document.
virtual bool Visit(const XMLDeclaration &)
Visit a declaration.
static bool compare(const Dependency &first, const Dependency &second)
Static helper function for DependencyList::unique.
void read(std::basic_istream< CharT, Traits > &)
CONSTDATA date::last_spec last
CONSTDATA date::month dec
auto format(const std::locale &loc, const CharT *fmt, const Streamable &tp) -> decltype(to_stream(std::declval< std::basic_ostream< CharT > & >(), fmt, tp), std::basic_string< CharT >{})
@ XML_ERROR_MISMATCHED_ELEMENT
@ XML_ELEMENT_DEPTH_EXCEEDED
@ XML_ERROR_EMPTY_DOCUMENT
@ XML_ERROR_PARSING_ATTRIBUTE
@ XML_ERROR_FILE_NOT_FOUND
@ XML_ERROR_PARSING_COMMENT
@ XML_ERROR_FILE_READ_ERROR
@ XML_ERROR_PARSING_UNKNOWN
@ XML_ERROR_PARSING_CDATA
@ XML_ERROR_PARSING_DECLARATION
@ XML_WRONG_ATTRIBUTE_TYPE
@ XML_ERROR_PARSING_ELEMENT
@ XML_ERROR_FILE_COULD_NOT_BE_OPENED
@ XML_CAN_NOT_CONVERT_TEXT
static FILE * callfopen(const char *filepath, const char *mode)
static const Entity entities[NUM_ENTITIES]
static const int NUM_ENTITIES
static const char DOUBLE_QUOTE
static const unsigned char TIXML_UTF_LEAD_0
static const unsigned char TIXML_UTF_LEAD_1
static const char SINGLE_QUOTE
static int TIXML_VSCPRINTF(const char *format, va_list va)
static const unsigned char TIXML_UTF_LEAD_2
static const char LINE_FEED
static const char CARRIAGE_RETURN
static const int TINYXML2_MAX_ELEMENT_DEPTH