Add functions for converting between UTF-8/16.

This commit is contained in:
Jordan Woyak
2013-02-27 18:00:42 -06:00
parent 9ff704f202
commit 0ea458b4dc
2 changed files with 41 additions and 0 deletions

View File

@ -97,4 +97,11 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st
std::string UriDecode(const std::string & sSrc);
std::string UriEncode(const std::string & sSrc);
#ifdef _WIN32
std::string UTF16ToUTF8(const std::wstring& str);
std::wstring UTF8ToUTF16(const std::string& str);
#endif
#endif // _STRINGUTIL_H_