Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/Utils.h

Issue 10459038: Clean up and fix Utils::ToUTF8String() and Utils::ToUTF16String() (Closed)
Patch Set: Created May 14, 2013, 1:54 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/DefaultWebRequestWinInet.cpp ('k') | src/Utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/Utils.h
===================================================================
--- a/src/Utils.h
+++ b/src/Utils.h
@@ -23,17 +23,17 @@
namespace AdblockPlus
{
namespace Utils
{
std::string Slurp(std::ios& stream);
std::string FromV8String(v8::Handle<v8::Value> value);
v8::Local<v8::String> ToV8String(const std::string& str);
#ifdef _WIN32
- std::wstring ToUTF16String(const std::string& str, unsigned long length);
- std::string ToUTF8String(const std::wstring& str, unsigned long length);
+ std::wstring ToUTF16String(const std::string& str);
+ std::string ToUTF8String(const std::wstring& str);
std::wstring CanonizeUrl(const std::wstring url);
std::wstring TrimString(std::wstring text);
#endif
}
}
#endif
« no previous file with comments | « src/DefaultWebRequestWinInet.cpp ('k') | src/Utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld