diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-06 17:24:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-06 17:24:42 +0000 |
commit | b760585571667f0e71d48ee074c5161a50548ca7 (patch) | |
tree | f2a5051cc28992dc2fec0ffe1f7857dbdfe22f91 /protocols/Twitter/src/StringUtil.h | |
parent | ff81cbdd84f85ae9ae42011eac3c05a588e55df1 (diff) |
- fix for the auth url;
- precompiled headers;
- unused junk removed;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@9712 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/src/StringUtil.h')
-rw-r--r-- | protocols/Twitter/src/StringUtil.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Twitter/src/StringUtil.h b/protocols/Twitter/src/StringUtil.h index 902e262c02..ef88318446 100644 --- a/protocols/Twitter/src/StringUtil.h +++ b/protocols/Twitter/src/StringUtil.h @@ -30,6 +30,15 @@ tstring GetWord(const tstring& str, unsigned index, bool getRest = false); std::string& replaceAll(std::string& context, const std::string& from, const std::string& to);
+inline std::string WideToUTF8(const std::wstring& str)
+{
+ return (char*)ptrA(mir_utf8encodeW(str.c_str()));
+}
+
+inline std::wstring UTF8ToWide(const std::string& str)
+{
+ return (wchar_t*)ptrW(mir_utf8decodeW(str.c_str()));
+}
inline bool Compare(const tstring& one, const tstring& two, bool caseSensitive)
{
|