X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=blobdiff_plain;f=nucleus%2Flibrary%2Fbasis%2Futf_conversion.h;fp=nucleus%2Flibrary%2Fbasis%2Futf_conversion.h;h=084ae496c9fce47fb6951c8f279ffb69c7928468;hp=6b1185e09eced1e9c04406d441e2859284f9ab3e;hb=de0da7f2f7958d4ba652ff2ef5c79991700141ac;hpb=a4c99c6006b3aa20b5f65f02c2d30db7e790083a diff --git a/nucleus/library/basis/utf_conversion.h b/nucleus/library/basis/utf_conversion.h index 6b1185e0..084ae496 100644 --- a/nucleus/library/basis/utf_conversion.h +++ b/nucleus/library/basis/utf_conversion.h @@ -217,10 +217,10 @@ Booleano isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd); #define from_unicode_persist(name, s) null_transcoder name(s, true) #endif -#ifdef _MSC_VER - //! sends UTF-8 information to the diagnostic view in the IDE. - #define TRACE_PRINT(s) TRACE(_T("%s"), to_unicode_temp(s)) -#endif +//#ifdef _MSC_VER +// //! sends UTF-8 information to the diagnostic view in the IDE. +// #define TRACE_PRINT(s) TRACE(_T("%s"), to_unicode_temp(s)) +//#endif ////////////// @@ -316,6 +316,9 @@ public: operator char * () { return (char *)_converted; } operator const char * () const { return (const char *)_converted; } + operator astring() const { return astring((const char *)_converted); } + //!< converts the char pointer into an astring object. + private: bool _make_own_copy; const UTF8 *_converted;