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

Unified Diff: net/base/net_string_util_icu_alternatives_ios.mm

Issue 1839803002: Remove net & url small, iOS ICU alternatives, unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « net/android/net_jni_registrar.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_string_util_icu_alternatives_ios.mm
diff --git a/net/base/net_string_util_icu_alternatives_ios.mm b/net/base/net_string_util_icu_alternatives_ios.mm
new file mode 100644
index 0000000000000000000000000000000000000000..7ea42808359318738151429e1be3f707798bccaa
--- /dev/null
+++ b/net/base/net_string_util_icu_alternatives_ios.mm
@@ -0,0 +1,44 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/logging.h"
+#include "base/strings/string16.h"
+#include "base/strings/string_piece.h"
+#include "net/base/net_string_util.h"
+
+namespace net {
+
+// This constant cannot be defined as const char[] because it is initialized
+// by base::kCodepageLatin1 (which is const char[]) in net_string_util_icu.cc.
+const char* const kCharsetLatin1 = "ISO-8859-1";
+
+bool ConvertToUtf8(const std::string& text,
+ const char* charset,
+ std::string* output) {
+ DCHECK(false) << "Not implemented yet.";
+ return false;
+}
+
+bool ConvertToUtf8AndNormalize(const std::string& text,
+ const char* charset,
+ std::string* output) {
+ DCHECK(false) << "Not implemented yet.";
+ return false;
+}
+
+bool ConvertToUTF16(const std::string& text,
+ const char* charset,
+ base::string16* output) {
+ DCHECK(false) << "Not implemented yet.";
+ return false;
+}
+
+bool ConvertToUTF16WithSubstitutions(const std::string& text,
+ const char* charset,
+ base::string16* output) {
+ DCHECK(false) << "Not implemented yet.";
+ return false;
+}
+
+} // namespace net
« no previous file with comments | « net/android/net_jni_registrar.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698