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

Side by Side Diff: base/i18n/file_util_icu.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 | « base/i18n/char_iterator.cc ('k') | base/i18n/icu_encoding_detection.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) 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 // 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/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/i18n/icu_string_conversions.h" 10 #include "base/i18n/icu_string_conversions.h"
11 #include "base/i18n/string_compare.h" 11 #include "base/i18n/string_compare.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "third_party/icu/public/common/unicode/uniset.h" 19 #include "third_party/icu/source/common/unicode/uniset.h"
20 #include "third_party/icu/public/i18n/unicode/coll.h" 20 #include "third_party/icu/source/i18n/unicode/coll.h"
21 21
22 namespace { 22 namespace {
23 23
24 class IllegalCharacters { 24 class IllegalCharacters {
25 public: 25 public:
26 static IllegalCharacters* GetInstance() { 26 static IllegalCharacters* GetInstance() {
27 return Singleton<IllegalCharacters>::get(); 27 return Singleton<IllegalCharacters>::get();
28 } 28 }
29 29
30 bool contains(UChar32 ucs4) { 30 bool contains(UChar32 ucs4) {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 std::string normalized_str; 161 std::string normalized_str;
162 if (base::ConvertToUtf8AndNormalize(file_name->BaseName().value(), 162 if (base::ConvertToUtf8AndNormalize(file_name->BaseName().value(),
163 base::kCodepageUTF8, 163 base::kCodepageUTF8,
164 &normalized_str)) { 164 &normalized_str)) {
165 *file_name = file_name->DirName().Append(base::FilePath(normalized_str)); 165 *file_name = file_name->DirName().Append(base::FilePath(normalized_str));
166 } 166 }
167 #endif 167 #endif
168 } 168 }
169 169
170 } // namespace 170 } // namespace
OLDNEW
« no previous file with comments | « base/i18n/char_iterator.cc ('k') | base/i18n/icu_encoding_detection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698