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

Side by Side Diff: components/autofill/core/common/autofill_regexes.h

Issue 1518783002: Revert of autofill: switch autofill_regexes to RE2 library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_
7 7
8 #include <string>
9
10 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
11 9
12 // Parsing utilities. 10 // Parsing utilities.
13 namespace autofill { 11 namespace autofill {
14 12
15 // Case-insensitive regular expression matching. 13 // Case-insensitive regular expression matching.
16 // Returns true if |pattern| is found in |input|. 14 // Returns true if |pattern| is found in |input|.
17 bool MatchesPattern(const base::string16& input, 15 bool MatchesPattern(const base::string16& input,
18 const std::string& pattern); 16 const base::string16& pattern);
19 17
20 } // namespace autofill 18 } // namespace autofill
21 19
22 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_ 20 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_
OLDNEW
« no previous file with comments | « components/autofill/core/common/DEPS ('k') | components/autofill/core/common/autofill_regexes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698