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 CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // A stack of saved positions in the stream. | 43 // A stack of saved positions in the stream. |
44 std::vector<std::vector<const AutofillField*>::const_iterator> saved_cursors_; | 44 std::vector<std::vector<const AutofillField*>::const_iterator> saved_cursors_; |
45 | 45 |
46 // The past-the-end pointer for the stream. | 46 // The past-the-end pointer for the stream. |
47 const std::vector<const AutofillField*>::const_iterator end_; | 47 const std::vector<const AutofillField*>::const_iterator end_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(AutofillScanner); | 49 DISALLOW_COPY_AND_ASSIGN(AutofillScanner); |
50 }; | 50 }; |
51 | 51 |
52 // Parsing utilities. | |
53 namespace autofill { | |
54 | |
55 // Case-insensitive regular expression matching. Returns true if |pattern| is | |
56 // found in |input|. | |
57 bool MatchString(const string16& input, const string16& pattern); | |
58 | |
59 } // namespace autofill | |
60 | |
61 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ | 52 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ |
OLD | NEW |