OLD | NEW |
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 Loading... |
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 |
OLD | NEW |