| 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.h" | 5 #include "content/common/android/address_parser.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "content/common/android/address_parser_internal.h" | 9 #include "content/common/android/address_parser_internal.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // Maximum length allowed for any address word between the house number | 26 // Maximum length allowed for any address word between the house number |
| 27 // and the state, both not included. | 27 // and the state, both not included. |
| 28 const size_t kMaxAddressNameWordLength = 25; | 28 const size_t kMaxAddressNameWordLength = 25; |
| 29 | 29 |
| 30 // Maximum number of words after the house number in which the location name | 30 // Maximum number of words after the house number in which the location name |
| 31 // should be found. | 31 // should be found. |
| 32 const size_t kMaxLocationNameDistance = 4; | 32 const size_t kMaxLocationNameDistance = 4; |
| 33 | 33 |
| 34 // Additional characters used as new line delimiters. | 34 // Additional characters used as new line delimiters. |
| 35 const char16 kNewlineDelimiters[] = { | 35 const base::char16 kNewlineDelimiters[] = { |
| 36 '\n', | 36 '\n', |
| 37 ',', | 37 ',', |
| 38 '*', | 38 '*', |
| 39 0x2022, // Unicode bullet | 39 0x2022, // Unicode bullet |
| 40 0, | 40 0, |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // anonymous namespace | 43 } // anonymous namespace |
| 44 | 44 |
| 45 namespace content { | 45 namespace content { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 it = words[next_word].end; | 210 it = words[next_word].end; |
| 211 } | 211 } |
| 212 } | 212 } |
| 213 | 213 |
| 214 return false; | 214 return false; |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace address_parser | 217 } // namespace address_parser |
| 218 | 218 |
| 219 } // namespace content | 219 } // namespace content |
| OLD | NEW |