OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_ANDROID_ADDRESS_PARSER_INTERNAL_H_ | 5 #ifndef CONTENT_COMMON_ANDROID_ADDRESS_PARSER_INTERNAL_H_ |
6 #define CONTENT_COMMON_ANDROID_ADDRESS_PARSER_INTERNAL_H_ | 6 #define CONTENT_COMMON_ANDROID_ADDRESS_PARSER_INTERNAL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace internal { | 21 namespace internal { |
22 | 22 |
23 // Exposed for tests. | 23 // Exposed for tests. |
24 struct CONTENT_EXPORT Word { | 24 struct CONTENT_EXPORT Word { |
25 base::string16::const_iterator begin; | 25 base::string16::const_iterator begin; |
26 base::string16::const_iterator end; | 26 base::string16::const_iterator end; |
27 | 27 |
28 Word(); | 28 Word(); |
29 Word(const base::string16::const_iterator& begin, | 29 Word(const base::string16::const_iterator& begin, |
30 const base::string16::const_iterator& end); | 30 const base::string16::const_iterator& end); |
| 31 Word(const Word& other); |
31 }; | 32 }; |
32 | 33 |
33 // Exposed for tests. | 34 // Exposed for tests. |
34 class CONTENT_EXPORT HouseNumberParser { | 35 class CONTENT_EXPORT HouseNumberParser { |
35 public: | 36 public: |
36 HouseNumberParser(); | 37 HouseNumberParser(); |
37 | 38 |
38 bool Parse(const base::string16::const_iterator& begin, | 39 bool Parse(const base::string16::const_iterator& begin, |
39 const base::string16::const_iterator& end, | 40 const base::string16::const_iterator& end, |
40 Word* word); | 41 Word* word); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 CONTENT_EXPORT bool IsZipValid(const Word& word, size_t state_index); | 81 CONTENT_EXPORT bool IsZipValid(const Word& word, size_t state_index); |
81 CONTENT_EXPORT bool IsZipValidForState(const Word& word, size_t state_index); | 82 CONTENT_EXPORT bool IsZipValidForState(const Word& word, size_t state_index); |
82 | 83 |
83 } // namespace internal | 84 } // namespace internal |
84 | 85 |
85 } // namespace address_parser | 86 } // namespace address_parser |
86 | 87 |
87 } // namespace content | 88 } // namespace content |
88 | 89 |
89 #endif // CONTENT_COMMON_ANDROID_ADDRESS_PARSER_INTERNAL_H_ | 90 #endif // CONTENT_COMMON_ANDROID_ADDRESS_PARSER_INTERNAL_H_ |
OLD | NEW |