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

Side by Side Diff: base/i18n/file_util_icu.cc

Issue 678001: base: string_util.h -> utf_string_conversions.h fix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | « no previous file | base/i18n/time_formatting.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // File utilities that use the ICU library go in this file. 5 // File utilities that use the ICU library go in this file.
6 6
7 #include "base/i18n/file_util_icu.h" 7 #include "base/i18n/file_util_icu.h"
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/logging.h"
10 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
11 #include "base/singleton.h" 12 #include "base/singleton.h"
12 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h"
13 #include "base/sys_string_conversions.h" 15 #include "base/sys_string_conversions.h"
14 #include "build/build_config.h" 16 #include "build/build_config.h"
15 #include "unicode/coll.h" 17 #include "unicode/coll.h"
16 #include "unicode/uniset.h" 18 #include "unicode/uniset.h"
17 19
18 namespace { 20 namespace {
19 21
20 class IllegalCharacters { 22 class IllegalCharacters {
21 public: 23 public:
22 bool contains(UChar32 ucs4) { 24 bool contains(UChar32 ucs4) {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // TODO(yuzo): Perhaps we should define SysNativeMBToUTF16? 183 // TODO(yuzo): Perhaps we should define SysNativeMBToUTF16?
182 return Singleton<LocaleAwareComparator>()->Compare( 184 return Singleton<LocaleAwareComparator>()->Compare(
183 WideToUTF16(base::SysNativeMBToWide(a.value().c_str())), 185 WideToUTF16(base::SysNativeMBToWide(a.value().c_str())),
184 WideToUTF16(base::SysNativeMBToWide(b.value().c_str()))) < 0; 186 WideToUTF16(base::SysNativeMBToWide(b.value().c_str()))) < 0;
185 #else 187 #else
186 #error Not implemented on your system 188 #error Not implemented on your system
187 #endif 189 #endif
188 } 190 }
189 191
190 } // namespace 192 } // namespace
OLDNEW
« no previous file with comments | « no previous file | base/i18n/time_formatting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698