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

Side by Side Diff: base/i18n/string_search.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/string_compare.h ('k') | base/i18n/string_search_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/i18n/string_search.h" 5 #include "base/i18n/string_search.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 7
8 #include "third_party/icu/public/i18n/unicode/usearch.h" 8 #include "third_party/icu/source/i18n/unicode/usearch.h"
9 9
10 namespace base { 10 namespace base {
11 namespace i18n { 11 namespace i18n {
12 12
13 FixedPatternStringSearchIgnoringCaseAndAccents:: 13 FixedPatternStringSearchIgnoringCaseAndAccents::
14 FixedPatternStringSearchIgnoringCaseAndAccents(const string16& find_this) 14 FixedPatternStringSearchIgnoringCaseAndAccents(const string16& find_this)
15 : find_this_(find_this) { 15 : find_this_(find_this) {
16 // usearch_open requires a valid string argument to be searched, even if we 16 // usearch_open requires a valid string argument to be searched, even if we
17 // want to set it by usearch_setText afterwards. So, supplying a dummy text. 17 // want to set it by usearch_setText afterwards. So, supplying a dummy text.
18 const string16& dummy = find_this_; 18 const string16& dummy = find_this_;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool StringSearchIgnoringCaseAndAccents(const string16& find_this, 71 bool StringSearchIgnoringCaseAndAccents(const string16& find_this,
72 const string16& in_this, 72 const string16& in_this,
73 size_t* match_index, 73 size_t* match_index,
74 size_t* match_length) { 74 size_t* match_length) {
75 return FixedPatternStringSearchIgnoringCaseAndAccents(find_this).Search( 75 return FixedPatternStringSearchIgnoringCaseAndAccents(find_this).Search(
76 in_this, match_index, match_length); 76 in_this, match_index, match_length);
77 } 77 }
78 78
79 } // namespace i18n 79 } // namespace i18n
80 } // namespace base 80 } // namespace base
OLDNEW
« no previous file with comments | « base/i18n/string_compare.h ('k') | base/i18n/string_search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698