diff --git a/space/space.h b/space/space.h index 3dae1dd..b18a21d 100755 --- a/space/space.h +++ b/space/space.h @@ -313,12 +313,8 @@ public: template void SerializeTableMulti(Stream & out, bool use_indents, int level) const; - template - static void PrintValue(Stream & out, const std::wstring & str, bool use_quote = true); - - // for other uses - template - static void PrintValue(Stream & out, const std::string & str, bool use_quote = true); + template + static void PrintValue(Stream & out, const StringType & str, bool use_quote = true); template static void PrintKey(Stream & out, const std::wstring & str); @@ -361,61 +357,28 @@ void Space::PrintLevel(Stream & out, bool use_indents, int level) -template -void Space::PrintValue(Stream & out, const std::wstring & str, bool use_quote) + +template +void Space::PrintValue(Stream & out, const StringType & str, bool use_quote) { if( use_quote ) out << '\"'; for(size_t i=0 ; i -void Space::PrintValue(Stream & out, const std::string & str, bool use_quote) -{ - if( use_quote ) - out << '\"'; - - for(size_t i=0 ; i