Index: src/libchcore/TString.h =================================================================== diff -u -N -r9479911a096555a7504c5c8a8eaee83ecb63440c -r30297d6aab17483da8e7b8323b4d17ff1a9f78d6 --- src/libchcore/TString.h (.../TString.h) (revision 9479911a096555a7504c5c8a8eaee83ecb63440c) +++ src/libchcore/TString.h (.../TString.h) (revision 30297d6aab17483da8e7b8323b4d17ff1a9f78d6) @@ -25,6 +25,7 @@ #include "libchcore.h" #include +#include BEGIN_CHCORE_NAMESPACE @@ -93,10 +94,6 @@ class LIBCHCORE_API TString { public: - static size_t npos; - static const size_t DefaultMaxStringSize = 65536; - -public: /** \name Construction/destruction */ /*@{*/ TString(); ///< Standard constructor @@ -219,8 +216,17 @@ protected: wchar_t* m_pszStringData; ///< Pointer to an underlying c string (with prepended TInternalStringData) + +public: + static const size_t npos; + static const size_t DefaultMaxStringSize = 65536; }; +inline std::wostream& operator<<(std::wostream& os, const TString& rString) +{ + return os << std::wstring((const wchar_t*)rString); +} + END_CHCORE_NAMESPACE LIBCHCORE_API chcore::TString operator+(const wchar_t* pszString, const chcore::TString& str);