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

Side by Side Diff: third_party/libaddressinput/chromium/cpp/src/address_ui.cc

Issue 106763007: [rac] Parse postal code formats and required fields in libaddressinput. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move AddressField parsing into Rule. Add more tests for parsing AddressFields. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (C) 2013 Google Inc. 1 // Copyright (C) 2013 Google Inc.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #include <libaddressinput/address_ui.h> 15 #include <libaddressinput/address_ui.h>
16 16
17 #include <libaddressinput/address_field.h> 17 #include <libaddressinput/address_field.h>
18 #include <libaddressinput/address_ui_component.h> 18 #include <libaddressinput/address_ui_component.h>
19 #include <libaddressinput/localization.h> 19 #include <libaddressinput/localization.h>
20 20
21 #include <string> 21 #include <string>
22 #include <vector> 22 #include <vector>
23 23
24 #include "address_field_util.h"
25 #include "grit.h" 24 #include "grit.h"
26 #include "messages.h" 25 #include "messages.h"
27 #include "region_data_constants.h" 26 #include "region_data_constants.h"
28 #include "rule.h" 27 #include "rule.h"
29 28
30 namespace i18n { 29 namespace i18n {
31 namespace addressinput { 30 namespace addressinput {
32 31
33 namespace { 32 namespace {
34 33
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 GetMessageIdForField(*field_it, rule.GetAdminAreaNameMessageId(), 121 GetMessageIdForField(*field_it, rule.GetAdminAreaNameMessageId(),
123 rule.GetPostalCodeNameMessageId())); 122 rule.GetPostalCodeNameMessageId()));
124 result.push_back(component); 123 result.push_back(component);
125 } 124 }
126 125
127 return result; 126 return result;
128 } 127 }
129 128
130 } // namespace addressinput 129 } // namespace addressinput
131 } // namespace i18n 130 } // namespace i18n
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698