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 #include "content/common/android/address_parser_internal.h" | 5 #include "content/common/android/address_parser_internal.h" |
6 | 6 |
7 #include <bitset> | 7 #include <bitset> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 Word::Word() { | 70 Word::Word() { |
71 } | 71 } |
72 | 72 |
73 Word::Word(const base::string16::const_iterator& begin, | 73 Word::Word(const base::string16::const_iterator& begin, |
74 const base::string16::const_iterator& end) | 74 const base::string16::const_iterator& end) |
75 : begin(begin), | 75 : begin(begin), |
76 end(end) { | 76 end(end) { |
77 DCHECK(begin <= end); | 77 DCHECK(begin <= end); |
78 } | 78 } |
79 | 79 |
| 80 Word::Word(const Word& other) = default; |
| 81 |
80 HouseNumberParser::HouseNumberParser() { | 82 HouseNumberParser::HouseNumberParser() { |
81 } | 83 } |
82 | 84 |
83 bool HouseNumberParser::IsPreDelimiter(base::char16 character) { | 85 bool HouseNumberParser::IsPreDelimiter(base::char16 character) { |
84 return character == ':' || IsPostDelimiter(character); | 86 return character == ':' || IsPostDelimiter(character); |
85 } | 87 } |
86 | 88 |
87 bool HouseNumberParser::IsPostDelimiter(base::char16 character) { | 89 bool HouseNumberParser::IsPostDelimiter(base::char16 character) { |
88 return base::IsUnicodeWhitespace(character) || strchr(",\"'", character); | 90 return base::IsUnicodeWhitespace(character) || strchr(",\"'", character); |
89 } | 91 } |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 } | 631 } |
630 | 632 |
631 return false; | 633 return false; |
632 } | 634 } |
633 | 635 |
634 } // namespace internal | 636 } // namespace internal |
635 | 637 |
636 } // namespace address_parser | 638 } // namespace address_parser |
637 | 639 |
638 } // namespace content | 640 } // namespace content |
OLD | NEW |