Revert "Revert "Revert 198403 "Move WrappedTexImage functionality to ui/gl"""
[chromium-blink-merge.git] / base / i18n / string_search.h
blob2069b0f3ad348a739ea9c1c14740d37d82e05776
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
3 // found in the LICENSE file.
5 #ifndef BASE_I18N_STRING_SEARCH_H_
6 #define BASE_I18N_STRING_SEARCH_H_
8 #include "base/i18n/base_i18n_export.h"
9 #include "base/string16.h"
11 namespace base {
12 namespace i18n {
14 // Returns true if |in_this| contains |find_this|. If |match_index| or
15 // |match_length| are non-NULL, they are assigned the start position and total
16 // length of the match.
18 // Only differences between base letters are taken into consideration. Case and
19 // accent differences are ignored. Please refer to 'primary level' in
20 // http://userguide.icu-project.org/collation/concepts for additional details.
21 BASE_I18N_EXPORT
22 bool StringSearchIgnoringCaseAndAccents(const string16& find_this,
23 const string16& in_this,
24 size_t* match_index,
25 size_t* match_length);
27 } // namespace i18n
28 } // namespace base
30 #endif // BASE_I18N_STRING_SEARCH_H_