Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: runtime/bin/utils_win.h

Issue 1194883002: Improve the encoding/decoding to/from system encoding on Windows (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Addressed review comments from lrn@ Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/utils_macos.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils_win.h
diff --git a/runtime/bin/utils_win.h b/runtime/bin/utils_win.h
index a0447604cfee6d5545a40139e2226e2ef86fda9a..92de84e661403c5ffa7478d35dcab5e18a3e72a4 100644
--- a/runtime/bin/utils_win.h
+++ b/runtime/bin/utils_win.h
@@ -12,6 +12,22 @@ namespace bin {
void FormatMessageIntoBuffer(DWORD code, wchar_t* buffer, int buffer_length);
+class StringUtilsWin {
+ public:
+ static char* WideToUtf8(wchar_t* wide,
+ intptr_t len = -1,
+ intptr_t* result_len = NULL);
+ static const char* WideToUtf8(const wchar_t* wide,
+ intptr_t len = -1,
+ intptr_t* result_len = NULL);
+ static wchar_t* Utf8ToWide(char* utf8,
+ intptr_t len = -1,
+ intptr_t* result_len = NULL);
+ static const wchar_t* Utf8ToWide(const char* utf8,
+ intptr_t len = -1,
+ intptr_t* result_len = NULL);
+};
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/utils_macos.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698