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

Side by Side Diff: content/common/android/address_parser.h

Issue 11428122: Let content_unittests almost build with the components build on android (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years 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 | Annotate | Revision Log
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_ADDRESS_PARSER_H_ 5 #ifndef CONTENT_COMMON_ADDRESS_PARSER_H_
6 #define CONTENT_COMMON_ADDRESS_PARSER_H_ 6 #define CONTENT_COMMON_ADDRESS_PARSER_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "content/common/content_export.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 // Provides methods to find a geographical address (currently US only) 13 // Provides methods to find a geographical address (currently US only)
13 // in a given text string. 14 // in a given text string.
14 namespace address_parser { 15 namespace address_parser {
15 16
16 // Find the first address in some chunk of text. If an address is found in 17 // Find the first address in some chunk of text. If an address is found in
17 // |text| true is returned and the address is copied into |address|. 18 // |text| true is returned and the address is copied into |address|.
18 // Otherwise, false is returned. 19 // Otherwise, false is returned.
19 bool FindAddress(const string16& text, string16* address); 20 bool FindAddress(const string16& text, string16* address);
20 21
21 // Find the first address in some chunk of test. |begin| is the starting 22 // Find the first address in some chunk of test. |begin| is the starting
22 // position to search from, |end| is the position to search to. |start_pos| 23 // position to search from, |end| is the position to search to. |start_pos|
23 // and |end_pos| are set to the starting and ending position of the address, 24 // and |end_pos| are set to the starting and ending position of the address,
24 // if found. 25 // if found.
25 bool FindAddress(const string16::const_iterator& begin, 26 CONTENT_EXPORT bool FindAddress(const string16::const_iterator& begin,
26 const string16::const_iterator& end, 27 const string16::const_iterator& end,
27 size_t* start_pos, 28 size_t* start_pos,
28 size_t* end_pos); 29 size_t* end_pos);
29 30
30 } // namespace address_parser 31 } // namespace address_parser
31 32
32 } // namespace content 33 } // namespace content
33 34
34 #endif // CONTENT_COMMON_ADDRESS_PARSER_H_ 35 #endif // CONTENT_COMMON_ADDRESS_PARSER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/java/java_bound_object.cc ('k') | content/common/android/address_parser_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698