@@ -91,7 +91,7 @@ distribution.
91
91
#endif
92
92
93
93
94
- #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE)
94
+ #if defined(_MSC_VER) && (_MSC_VER >= 1400 )
95
95
// Microsoft visual studio, version 2005 and higher.
96
96
/* int _snprintf_s(
97
97
char *buffer,
@@ -109,9 +109,6 @@ inline int TIXML_SNPRINTF( char* buffer, size_t size, const char* format, ... )
109
109
return result;
110
110
}
111
111
#define TIXML_SSCANF sscanf_s
112
- #elif defined WINCE
113
- #define TIXML_SNPRINTF _snprintf
114
- #define TIXML_SSCANF sscanf
115
112
#else
116
113
// GCC version 3 and higher
117
114
// #warning( "Using sn* functions." )
@@ -506,13 +503,13 @@ class XMLUtil
506
503
static bool IsWhiteSpace ( char p ) {
507
504
return !IsUTF8Continuation (p) && isspace ( static_cast <unsigned char >(p) );
508
505
}
509
-
506
+
510
507
inline static bool IsNameStartChar ( unsigned char ch ) {
511
508
return ( ( ch < 128 ) ? isalpha ( ch ) : 1 )
512
509
|| ch == ' :'
513
510
|| ch == ' _' ;
514
511
}
515
-
512
+
516
513
inline static bool IsNameChar ( unsigned char ch ) {
517
514
return IsNameStartChar ( ch )
518
515
|| isdigit ( ch )
@@ -535,7 +532,7 @@ class XMLUtil
535
532
}
536
533
return false ;
537
534
}
538
-
535
+
539
536
inline static int IsUTF8Continuation ( const char p ) {
540
537
return p & 0x80 ;
541
538
}
@@ -1266,14 +1263,14 @@ class TINYXML2_LIB XMLElement : public XMLNode
1266
1263
return a->QueryFloatValue ( value );
1267
1264
}
1268
1265
1269
-
1266
+
1270
1267
/* * Given an attribute name, QueryAttribute() returns
1271
1268
XML_NO_ERROR, XML_WRONG_ATTRIBUTE_TYPE if the conversion
1272
1269
can't be performed, or XML_NO_ATTRIBUTE if the attribute
1273
1270
doesn't exist. It is overloaded for the primitive types,
1274
1271
and is a generally more convenient replacement of
1275
1272
QueryIntAttribute() and related functions.
1276
-
1273
+
1277
1274
If successful, the result of the conversion
1278
1275
will be written to 'value'. If not successful, nothing will
1279
1276
be written to 'value'. This allows you to provide default
@@ -1401,7 +1398,7 @@ class TINYXML2_LIB XMLElement : public XMLNode
1401
1398
@verbatim
1402
1399
<foo>Hullaballoo!<b>This is text</b></foo>
1403
1400
@endverbatim
1404
-
1401
+
1405
1402
For this XML:
1406
1403
@verbatim
1407
1404
<foo />
@@ -1415,13 +1412,13 @@ class TINYXML2_LIB XMLElement : public XMLNode
1415
1412
// / Convenience method for setting text inside and element. See SetText() for important limitations.
1416
1413
void SetText ( int value );
1417
1414
// / Convenience method for setting text inside and element. See SetText() for important limitations.
1418
- void SetText ( unsigned value );
1415
+ void SetText ( unsigned value );
1419
1416
// / Convenience method for setting text inside and element. See SetText() for important limitations.
1420
- void SetText ( bool value );
1417
+ void SetText ( bool value );
1421
1418
// / Convenience method for setting text inside and element. See SetText() for important limitations.
1422
- void SetText ( double value );
1419
+ void SetText ( double value );
1423
1420
// / Convenience method for setting text inside and element. See SetText() for important limitations.
1424
- void SetText ( float value );
1421
+ void SetText ( float value );
1425
1422
1426
1423
/* *
1427
1424
Convenience method to query the value of a child text node. This is probably best
@@ -1673,7 +1670,7 @@ class TINYXML2_LIB XMLDocument : public XMLNode
1673
1670
}
1674
1671
// / If there is an error, print it to stdout.
1675
1672
void PrintError () const ;
1676
-
1673
+
1677
1674
// / Clear the document, resetting it to the initial state.
1678
1675
void Clear ();
1679
1676
0 commit comments