56 #ifndef _xmlutfconversion_h
57 #define _xmlutfconversion_h
73 std::basic_string<char, std::char_traits<char>, std::allocator<char> >
MEZZ_LIB AsUtf8(
const wchar_t* str);
78 std::basic_string<char, std::char_traits<char>, std::allocator<char> >
MEZZ_LIB AsUtf8(
const std::basic_string<
wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >& str);
83 std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >
MEZZ_LIB AsWide(
const char* str);
88 std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >
MEZZ_LIB AsWide(
const std::basic_string<
char, std::char_traits<char>, std::allocator<char> >& str);
125 #endif // Include guard
String GetOneTag(std::istream &stream)
Gets the first tag out of the Stream and returns it as a String.
Document * PreParseClassFromSingleTag(const String &NameSpace, const String &ClassName, const String &OneTag)
Perform a basic series of checks for extracting meaning from a single xml tag.
std::basic_string< wchar_t, std::char_traits< wchar_t >, std::allocator< wchar_t > > MEZZ_LIB AsWide(const char *str)
Convert a Convert a c-style string to std::wstring containing native encoding (Usually UCS2 on window...
All the definitions for datatypes as well as some basic conversion functions are defined here...
std::basic_string< char, std::char_traits< char >, std::allocator< char > > MEZZ_LIB AsUtf8(const wchar_t *str)
Convert a c-style string of wchar_t to std::string containing UTF8.
The bulk of the engine components go in this namspace.
String EscapeXML(const String &XMLText)
Convert < > & and " in text to <, >, & and "e so text can safely be stored in XML.
std::string String
A datatype used to a series of characters.