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

Unified Diff: base/i18n/string_search.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/i18n/string_compare.cc ('k') | base/i18n/string_search.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/string_search.h
diff --git a/base/i18n/string_search.h b/base/i18n/string_search.h
deleted file mode 100644
index 138606f8c60c3fceaa1c70b2746e26e7f3a10b29..0000000000000000000000000000000000000000
--- a/base/i18n/string_search.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BASE_I18N_STRING_SEARCH_H_
-#define BASE_I18N_STRING_SEARCH_H_
-
-#include "base/i18n/base_i18n_export.h"
-#include "base/strings/string16.h"
-
-struct UStringSearch;
-
-namespace base {
-namespace i18n {
-
-// Returns true if |in_this| contains |find_this|. If |match_index| or
-// |match_length| are non-NULL, they are assigned the start position and total
-// length of the match.
-//
-// Only differences between base letters are taken into consideration. Case and
-// accent differences are ignored. Please refer to 'primary level' in
-// http://userguide.icu-project.org/collation/concepts for additional details.
-BASE_I18N_EXPORT
- bool StringSearchIgnoringCaseAndAccents(const string16& find_this,
- const string16& in_this,
- size_t* match_index,
- size_t* match_length);
-
-// This class is for speeding up multiple StringSearchIgnoringCaseAndAccents()
-// with the same |find_this| argument. |find_this| is passed as the constructor
-// argument, and precomputation for searching is done only at that timing.
-class BASE_I18N_EXPORT FixedPatternStringSearchIgnoringCaseAndAccents {
- public:
- explicit FixedPatternStringSearchIgnoringCaseAndAccents(
- const string16& find_this);
- ~FixedPatternStringSearchIgnoringCaseAndAccents();
-
- // Returns true if |in_this| contains |find_this|. If |match_index| or
- // |match_length| are non-NULL, they are assigned the start position and total
- // length of the match.
- bool Search(const string16& in_this,
- size_t* match_index,
- size_t* match_length);
-
- private:
- string16 find_this_;
- UStringSearch* search_;
-};
-
-} // namespace i18n
-} // namespace base
-
-#endif // BASE_I18N_STRING_SEARCH_H_
« no previous file with comments | « base/i18n/string_compare.cc ('k') | base/i18n/string_search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698