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

Side by Side Diff: ui/base/l10n/l10n_util_android.cc

Issue 18252003: Replace third_party/icu/public with third_party/icu/source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll ICU to 211851 Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/base/l10n/l10n_util_collator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/base/l10n/l10n_util_android.h" 5 #include "ui/base/l10n/l10n_util_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "jni/LocalizationUtils_jni.h" 13 #include "jni/LocalizationUtils_jni.h"
14 #include "third_party/icu/public/common/unicode/uloc.h" 14 #include "third_party/icu/source/common/unicode/uloc.h"
15 15
16 namespace l10n_util { 16 namespace l10n_util {
17 17
18 jboolean IsRTL(JNIEnv* env, jclass clazz) { 18 jboolean IsRTL(JNIEnv* env, jclass clazz) {
19 return base::i18n::IsRTL(); 19 return base::i18n::IsRTL();
20 } 20 }
21 21
22 jint GetFirstStrongCharacterDirection(JNIEnv* env, jclass clazz, 22 jint GetFirstStrongCharacterDirection(JNIEnv* env, jclass clazz,
23 jstring string) { 23 jstring string) {
24 return base::i18n::GetFirstStrongCharacterDirection( 24 return base::i18n::GetFirstStrongCharacterDirection(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 java_locale.obj(), 85 java_locale.obj(),
86 java_display_locale.obj())); 86 java_display_locale.obj()));
87 return ConvertJavaStringToUTF16(java_result); 87 return ConvertJavaStringToUTF16(java_result);
88 } 88 }
89 89
90 bool RegisterLocalizationUtil(JNIEnv* env) { 90 bool RegisterLocalizationUtil(JNIEnv* env) {
91 return RegisterNativesImpl(env); 91 return RegisterNativesImpl(env);
92 } 92 }
93 93
94 } // namespace l10n_util 94 } // namespace l10n_util
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/base/l10n/l10n_util_collator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698