diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-08 21:14:47 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-08 21:14:47 -0500 |
commit | 98e08cb7c2ae6c61192bac73a1fc7254224452be (patch) | |
tree | 2ff5a4b9254b0dc9217795dc8a76365736fd40e4 /include/tinyxml2.h | |
parent | 0a0766a186db892f7a8f28f0130a043fd9b9dff9 (diff) | |
parent | 82c75b0a97eba2f78206d3b97d47eaa580a82f0c (diff) |
Fixed incorrect language percentages
Diffstat (limited to 'include/tinyxml2.h')
-rwxr-xr-x | include/tinyxml2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tinyxml2.h b/include/tinyxml2.h index fb7464a..4282642 100755 --- a/include/tinyxml2.h +++ b/include/tinyxml2.h @@ -38,6 +38,8 @@ distribution. # include <cstring>
#endif
+#include <string>
+
/*
TODO: intern strings instead of allocation.
*/
@@ -1187,6 +1189,11 @@ public: */
const char* Attribute( const char* name, const char* value=0 ) const;
+ /** Functions the same as Attribute(), but returns the result
+ as a std::string.
+ */
+ std::string StrAttribute( const char* name, const char* value=0 ) const;
+
/** Given an attribute name, IntAttribute() returns the value
of the attribute interpreted as an integer. 0 will be
returned if there is an error. For a method with error
|