OLD | NEW |
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 <stdint.h> |
| 6 |
5 #include "base/i18n/string_search.h" | 7 #include "base/i18n/string_search.h" |
6 #include "base/logging.h" | 8 #include "base/logging.h" |
7 | 9 |
8 #include "third_party/icu/source/i18n/unicode/usearch.h" | 10 #include "third_party/icu/source/i18n/unicode/usearch.h" |
9 | 11 |
10 namespace base { | 12 namespace base { |
11 namespace i18n { | 13 namespace i18n { |
12 | 14 |
13 FixedPatternStringSearchIgnoringCaseAndAccents:: | 15 FixedPatternStringSearchIgnoringCaseAndAccents:: |
14 FixedPatternStringSearchIgnoringCaseAndAccents(const string16& find_this) | 16 FixedPatternStringSearchIgnoringCaseAndAccents(const string16& find_this) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 bool StringSearchIgnoringCaseAndAccents(const string16& find_this, | 73 bool StringSearchIgnoringCaseAndAccents(const string16& find_this, |
72 const string16& in_this, | 74 const string16& in_this, |
73 size_t* match_index, | 75 size_t* match_index, |
74 size_t* match_length) { | 76 size_t* match_length) { |
75 return FixedPatternStringSearchIgnoringCaseAndAccents(find_this).Search( | 77 return FixedPatternStringSearchIgnoringCaseAndAccents(find_this).Search( |
76 in_this, match_index, match_length); | 78 in_this, match_index, match_length); |
77 } | 79 } |
78 | 80 |
79 } // namespace i18n | 81 } // namespace i18n |
80 } // namespace base | 82 } // namespace base |
OLD | NEW |