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

Unified Diff: third_party/libaddressinput/chromium/cpp/src/address_field_util.h

Issue 106763007: [rac] Parse postal code formats and required fields in libaddressinput. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Omit postal code examples and URL. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/libaddressinput/chromium/cpp/src/address_field_util.h
diff --git a/third_party/libaddressinput/chromium/cpp/src/address_field_util.h b/third_party/libaddressinput/chromium/cpp/src/address_field_util.h
index e55b9502a6b1f545edeb3708da4346e4b76efea2..334f02f4bb8ec92b8d6f534eacc822a4ae8dcc36 100644
--- a/third_party/libaddressinput/chromium/cpp/src/address_field_util.h
+++ b/third_party/libaddressinput/chromium/cpp/src/address_field_util.h
@@ -36,6 +36,12 @@ enum {
void ParseAddressFieldsFormat(const std::string& format,
std::vector<AddressField>* fields);
+// Clears |fields|, parses |required|, and adds the required fields to |fields|.
+// For example, parses "SCDX" into {ADMIN_AREA, LOCALITY, DEPENDENT_LOCALITY,
+// SORTING_CODE}.
+void ParseAddressFieldsRequired(const std::string& required,
Evan Stade 2013/12/17 19:47:24 why isn't this part of Rule? what other code will
please use gerrit instead 2013/12/18 00:57:50 This header is only every used in Rule. Moved ever
+ std::vector<AddressField>* fields);
+
} // namespace addressinput
} // namespace i18n

Powered by Google App Engine
This is Rietveld 408576698