void dump_array(std::wostream & os, T const*const v, size_t const count){ if(!count) { os << "<empty>"; } else { os.fill('0'); for(unsigned int i = 0;i<count;++i){ if(i) { os << " "; os.width(0); } os.width(std::numeric_limits<T>::digits/4); os<< std::hex << static_cast<unsigned int>( v[i] ); } } }
void CLogger::LogError( std::wostream const & msg ) { std::wstringstream ss; ss << msg.rdbuf(); LogError( ss.str() ); }
unicode_ostream::unicode_ostream(std::ostream& narrow_stream, std::wostream& wide_stream, size_t size) #ifdef _MSC_VER : std::ostream(new unicode_streambuf(wide_stream.rdbuf(), size)) #else : std::ostream(narrow_stream.rdbuf())
inline void PrintWithIndent(std::wostream& aStream, const std::wstring& aString, int aIndent) { aStream.width(aIndent); aStream << L""; aStream << aString; }