Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: android_webview/native/address_parser.h

Issue 2803163002: Move address parser and prefixes to android_webview/. (Closed)
Patch Set: Bring back ContentViewStatics import Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/native/BUILD.gn ('k') | android_webview/native/address_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_ADDRESS_PARSER_H_
6 #define CONTENT_COMMON_ANDROID_ADDRESS_PARSER_H_ 6 #define ANDROID_WEBVIEW_NATIVE_ADDRESS_PARSER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "content/common/content_export.h"
12 11
13 namespace content { 12 namespace android_webview {
14 13
15 // Provides methods to find a geographical address (currently US only) 14 // Provides methods to find a geographical address (currently US only)
16 // in a given text string. 15 // in a given text string.
17 namespace address_parser { 16 namespace address_parser {
18 17
19 // Find the first address in some chunk of text. If an address is found in 18 // Find the first address in some chunk of text. If an address is found in
20 // |text| true is returned and the address is copied into |address|. 19 // |text| true is returned and the address is copied into |address|.
21 // Otherwise, false is returned. 20 // Otherwise, false is returned.
22 bool FindAddress(const base::string16& text, base::string16* address); 21 bool FindAddress(const base::string16& text, base::string16* address);
23 22
24 // Find the first address in some chunk of test. |begin| is the starting 23 // Find the first address in some chunk of test. |begin| is the starting
25 // position to search from, |end| is the position to search to. |start_pos| 24 // position to search from, |end| is the position to search to. |start_pos|
26 // and |end_pos| are set to the starting and ending position of the address, 25 // and |end_pos| are set to the starting and ending position of the address,
27 // if found. 26 // if found.
28 CONTENT_EXPORT bool FindAddress(const base::string16::const_iterator& begin, 27 bool FindAddress(const base::string16::const_iterator& begin,
29 const base::string16::const_iterator& end, 28 const base::string16::const_iterator& end,
30 size_t* start_pos, 29 size_t* start_pos,
31 size_t* end_pos); 30 size_t* end_pos);
32 31
33 } // namespace address_parser 32 } // namespace address_parser
34 33
35 } // namespace content 34 } // namespace android_webview
36 35
37 #endif // CONTENT_COMMON_ANDROID_ADDRESS_PARSER_H_ 36 #endif // ANDROID_WEBVIEW_NATIVE_ADDRESS_PARSER_H_
OLDNEW
« no previous file with comments | « android_webview/native/BUILD.gn ('k') | android_webview/native/address_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698