| 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 "android_webview/native/address_parser.h" | 5 #include "android_webview/browser/address_parser.h" |
| 6 | 6 |
| 7 #include "android_webview/native/address_parser_internal.h" | 7 #include "android_webview/browser/address_parser_internal.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 // Minimum number of words in an address after the house number | 13 // Minimum number of words in an address after the house number |
| 14 // before a state is expected to be found. | 14 // before a state is expected to be found. |
| 15 // A value too high can miss short addresses. | 15 // A value too high can miss short addresses. |
| 16 const size_t kMinAddressWords = 3; | 16 const size_t kMinAddressWords = 3; |
| 17 | 17 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 it = words[next_word].end; | 216 it = words[next_word].end; |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 return false; | 220 return false; |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace address_parser | 223 } // namespace address_parser |
| 224 | 224 |
| 225 } // namespace android_webview | 225 } // namespace android_webview |
| OLD | NEW |