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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_REGEXES_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_REGEXES_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_REGEXES_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_REGEXES_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 // Parsing utilities. | 10 // Parsing utilities. |
11 namespace autofill { | 11 namespace autofill { |
12 | 12 |
13 // Case-insensitive regular expression matching. | 13 // Case-insensitive regular expression matching. |
14 // Returns true if |pattern| is found in |input|. | 14 // Returns true if |pattern| is found in |input|. |
15 bool MatchesPattern(const base::string16& input, | 15 bool MatchesPattern(const base::string16& input, |
16 const base::string16& pattern); | 16 const base::string16& pattern); |
17 | 17 |
18 } // namespace autofill | 18 } // namespace autofill |
19 | 19 |
20 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_REGEXES_H_ | 20 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_REGEXES_H_ |
OLD | NEW |