Changeset 738 for code/branches/FICN/src/tinyxml/tinystr.h
- Timestamp:
- Dec 31, 2007, 12:06:33 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/tinyxml/tinystr.h
r471 r738 43 43 #include <string.h> 44 44 45 /* The support for explicit isn't that universal, and it isn't really 46 required - it is used to check that the TiXmlString class isn't incorrectly 47 used. Be nice to old compilers and macro it here: 48 */ 49 #if defined(_MSC_VER) && (_MSC_VER >= 1200 ) 50 // Microsoft visual studio, version 6 and higher. 51 #define TIXML_EXPLICIT explicit 52 #elif defined(__GNUC__) && (__GNUC__ >= 3 ) 53 // GCC version 3 and higher.s 54 #define TIXML_EXPLICIT explicit 55 #else 56 #define TIXML_EXPLICIT 57 #endif 58 59 45 60 /* 46 61 TiXmlString is an emulation of a subset of the std::string template. … … 54 69 public : 55 70 // The size type used 56 typedef unsigned int size_type;71 typedef size_t size_type; 57 72 58 73 // Error value for find primitive … … 66 81 67 82 // TiXmlString copy constructor 68 TiXmlString ( const TiXmlString & copy)83 TiXmlString ( const TiXmlString & copy) : rep_(0) 69 84 { 70 85 init(copy.length()); … … 73 88 74 89 // TiXmlString constructor, based on a string 75 T iXmlString (const char * copy)90 TIXML_EXPLICIT TiXmlString ( const char * copy) : rep_(0) 76 91 { 77 92 init( static_cast<size_type>( strlen(copy) )); … … 80 95 81 96 // TiXmlString constructor, based on a string 82 T iXmlString (const char * str, size_type len)97 TIXML_EXPLICIT TiXmlString ( const char * str, size_type len) : rep_(0) 83 98 { 84 99 init(len);
Note: See TracChangeset
for help on using the changeset viewer.