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

Side by Side Diff: base/i18n/string_search.h

Issue 16344006: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 #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 7
8 #include "base/i18n/base_i18n_export.h" 8 #include "base/i18n/base_i18n_export.h"
9 #include "base/string16.h" 9 #include "base/strings/string16.h"
10 10
11 namespace base { 11 namespace base {
12 namespace i18n { 12 namespace i18n {
13 13
14 // Returns true if |in_this| contains |find_this|. If |match_index| or 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 15 // |match_length| are non-NULL, they are assigned the start position and total
16 // length of the match. 16 // length of the match.
17 // 17 //
18 // Only differences between base letters are taken into consideration. Case and 18 // Only differences between base letters are taken into consideration. Case and
19 // accent differences are ignored. Please refer to 'primary level' in 19 // accent differences are ignored. Please refer to 'primary level' in
20 // http://userguide.icu-project.org/collation/concepts for additional details. 20 // http://userguide.icu-project.org/collation/concepts for additional details.
21 BASE_I18N_EXPORT 21 BASE_I18N_EXPORT
22 bool StringSearchIgnoringCaseAndAccents(const string16& find_this, 22 bool StringSearchIgnoringCaseAndAccents(const string16& find_this,
23 const string16& in_this, 23 const string16& in_this,
24 size_t* match_index, 24 size_t* match_index,
25 size_t* match_length); 25 size_t* match_length);
26 26
27 } // namespace i18n 27 } // namespace i18n
28 } // namespace base 28 } // namespace base
29 29
30 #endif // BASE_I18N_STRING_SEARCH_H_ 30 #endif // BASE_I18N_STRING_SEARCH_H_
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