| 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 #ifndef BASE_I18N_STRING_SEARCH_H_ | 5 #ifndef BASE_I18N_STRING_SEARCH_H_ |
| 6 #define BASE_I18N_STRING_SEARCH_H_ | 6 #define BASE_I18N_STRING_SEARCH_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include "base/i18n/base_i18n_export.h" | 8 #include "base/i18n/base_i18n_export.h" |
| 10 #include "base/string16.h" | 9 #include "base/string16.h" |
| 11 | 10 |
| 12 namespace base { | 11 namespace base { |
| 13 namespace i18n { | 12 namespace i18n { |
| 14 | 13 |
| 15 // Returns true if |in_this| contains |find_this|. Only differences between base | 14 // Returns true if |in_this| contains |find_this|. Only differences between base |
| 16 // letters are taken into consideration. Case and accent differences are | 15 // letters are taken into consideration. Case and accent differences are |
| 17 // ignored. Please refer to 'primary level' in | 16 // ignored. Please refer to 'primary level' in |
| 18 // http://userguide.icu-project.org/collation/concepts for additional details. | 17 // http://userguide.icu-project.org/collation/concepts for additional details. |
| 19 BASE_I18N_EXPORT | 18 BASE_I18N_EXPORT |
| 20 bool StringSearchIgnoringCaseAndAccents(const string16& find_this, | 19 bool StringSearchIgnoringCaseAndAccents(const string16& find_this, |
| 21 const string16& in_this); | 20 const string16& in_this); |
| 22 | 21 |
| 23 } // namespace i18n | 22 } // namespace i18n |
| 24 } // namespace base | 23 } // namespace base |
| 25 | 24 |
| 26 #endif // BASE_I18N_STRING_SEARCH_H_ | 25 #endif // BASE_I18N_STRING_SEARCH_H_ |
| 27 | 26 |
| OLD | NEW |