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

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

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 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
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/logging.h"
11 #include "base/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "base/sys_string_conversions.h" 15 #include "base/sys_string_conversions.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "unicode/coll.h" 17 #include "unicode/coll.h"
18 #include "unicode/uniset.h" 18 #include "unicode/uniset.h"
19 19
20 namespace { 20 namespace {
21 21
22 class IllegalCharacters { 22 class IllegalCharacters {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // TODO(yuzo): Perhaps we should define SysNativeMBToUTF16? 191 // TODO(yuzo): Perhaps we should define SysNativeMBToUTF16?
192 return LocaleAwareComparator::GetInstance()->Compare( 192 return LocaleAwareComparator::GetInstance()->Compare(
193 WideToUTF16(base::SysNativeMBToWide(a.value().c_str())), 193 WideToUTF16(base::SysNativeMBToWide(a.value().c_str())),
194 WideToUTF16(base::SysNativeMBToWide(b.value().c_str()))) < 0; 194 WideToUTF16(base::SysNativeMBToWide(b.value().c_str()))) < 0;
195 #else 195 #else
196 #error Not implemented on your system 196 #error Not implemented on your system
197 #endif 197 #endif
198 } 198 }
199 199
200 } // namespace 200 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698