hey guys,
im using irrxml only in my current project but i dont get how i can easily get a wchar_t which has the value of returnAttributeValue cause its only returning const char* :S
normally xyou can use stringw but niko hasnt implentet irrstring.h in IrrXML and i dont want to convert / rewrite everything and im not used to string.h or so. can maybe somebody give me a hint?
greets,
halan
my problem with irrXML
Code: Select all
core::stringw wStr = xmlReader->getAttributeValue();
The XML reader class IIrrXMLReader is a template. Within Irrlicht, there are two types that are available-- IXMLReader and IXMLReaderUTF8. The first of those uses wchar_t internally and always returns wchar_t strings.
If you are not using Irrlicht, but are using IrrXML directly, there are the createIrrXMLReader family of functions that return XML readers for 8, 16 and 32-bit characters.
Travis
If you are not using Irrlicht, but are using IrrXML directly, there are the createIrrXMLReader family of functions that return XML readers for 8, 16 and 32-bit characters.
Travis
yeah thats the point stringw is not implented in irrxml:SSpintz wrote:Then you can get the wchar_t* data by using the c_str function of core::stringw.Code: Select all
core::stringw wStr = xmlReader->getAttributeValue();
My Blog: http://www.freakybytes.org