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

Unified Diff: base/strings/utf_string_conversions.h

Issue 1125773004: Pull in ASCII<->UTF16 from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/mini_chromium@master
Patch Set: Created 5 years, 8 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
Index: base/strings/utf_string_conversions.h
diff --git a/base/strings/utf_string_conversions.h b/base/strings/utf_string_conversions.h
index b536b03c7df50f51b10bf55ac7b3c27ac9adb09a..fb2323f1cb59748c73bd57785b85ec431cf6d42b 100644
--- a/base/strings/utf_string_conversions.h
+++ b/base/strings/utf_string_conversions.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/strings/string16.h"
+#include "base/strings/string_piece.h"
namespace base {
@@ -15,7 +16,9 @@ bool UTF8ToUTF16(const char* src, size_t src_len, string16* output);
string16 UTF8ToUTF16(const std::string& utf8);
bool UTF16ToUTF8(const char16* src, size_t src_len, std::string* output);
std::string UTF16ToUTF8(const string16& utf16);
+string16 ASCIIToUTF16(const StringPiece& ascii);
+std::string UTF16ToASCII(const string16& utf16);
-} // namespace
+} // namespace base
#endif // MINI_CHROMIUM_BASE_STRINGS_UTF_STRING_CONVERSIONS_H_

Powered by Google App Engine
This is Rietveld 408576698