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

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

Issue 135853023: Update libaddressinput's US address format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | third_party/libaddressinput/chromium/cpp/test/address_data_test.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) 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,
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 region_data.insert(std::make_pair("TZ", "{" 1078 region_data.insert(std::make_pair("TZ", "{"
1079 "\"name\":\"TANZANIA (UNITED REP.)\"" 1079 "\"name\":\"TANZANIA (UNITED REP.)\""
1080 "}")); 1080 "}"));
1081 region_data.insert(std::make_pair("UA", "{" 1081 region_data.insert(std::make_pair("UA", "{"
1082 "\"name\":\"UKRAINE\"," 1082 "\"name\":\"UKRAINE\","
1083 "\"fmt\":\"%Z %C%n%A%n%O%n%N\"" 1083 "\"fmt\":\"%Z %C%n%A%n%O%n%N\""
1084 "}")); 1084 "}"));
1085 region_data.insert(std::make_pair("UG", "{" 1085 region_data.insert(std::make_pair("UG", "{"
1086 "\"name\":\"UGANDA\"" 1086 "\"name\":\"UGANDA\""
1087 "}")); 1087 "}"));
1088 // NOTE: The fmt value for UM and US differs from the i18napis fmt by the
1089 // insertion of a comma separating city and state.
1088 region_data.insert(std::make_pair("UM", "{" 1090 region_data.insert(std::make_pair("UM", "{"
1089 "\"name\":\"UNITED STATES MINOR OUTLYING ISLANDS\"," 1091 "\"name\":\"UNITED STATES MINOR OUTLYING ISLANDS\","
1090 "\"fmt\":\"%N%n%O%n%A%n%C %S %Z\"," 1092 "\"fmt\":\"%N%n%O%n%A%n%C, %S %Z\","
1091 "\"zip_name_type\":\"zip\"," 1093 "\"zip_name_type\":\"zip\","
1092 "\"state_name_type\":\"state\"" 1094 "\"state_name_type\":\"state\""
1093 "}")); 1095 "}"));
1094 region_data.insert(std::make_pair("US", "{" 1096 region_data.insert(std::make_pair("US", "{"
1095 "\"name\":\"UNITED STATES\"," 1097 "\"name\":\"UNITED STATES\","
1096 "\"lang\":\"en\"," 1098 "\"lang\":\"en\","
1097 "\"languages\":\"en\"," 1099 "\"languages\":\"en\","
1098 "\"fmt\":\"%N%n%O%n%A%n%C %S %Z\"," 1100 "\"fmt\":\"%N%n%O%n%A%n%C, %S %Z\","
1099 "\"zip_name_type\":\"zip\"," 1101 "\"zip_name_type\":\"zip\","
1100 "\"state_name_type\":\"state\"" 1102 "\"state_name_type\":\"state\""
1101 "}")); 1103 "}"));
1102 region_data.insert(std::make_pair("UY", "{" 1104 region_data.insert(std::make_pair("UY", "{"
1103 "\"name\":\"URUGUAY\"," 1105 "\"name\":\"URUGUAY\","
1104 "\"lang\":\"es\"," 1106 "\"lang\":\"es\","
1105 "\"languages\":\"es\"," 1107 "\"languages\":\"es\","
1106 "\"fmt\":\"%N%n%O%n%A%n%Z %C %S\"" 1108 "\"fmt\":\"%N%n%O%n%A%n%Z %C %S\""
1107 "}")); 1109 "}"));
1108 region_data.insert(std::make_pair("UZ", "{" 1110 region_data.insert(std::make_pair("UZ", "{"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 } 1228 }
1227 1229
1228 // static 1230 // static
1229 const std::string& RegionDataConstants::GetCountryCompactLineSeparator( 1231 const std::string& RegionDataConstants::GetCountryCompactLineSeparator(
1230 const std::string& country_code) { 1232 const std::string& country_code) {
1231 return GetCompactLineSeparator(GetCountryScript(country_code)); 1233 return GetCompactLineSeparator(GetCountryScript(country_code));
1232 } 1234 }
1233 1235
1234 } // namespace addressinput 1236 } // namespace addressinput
1235 } // namespace i18n 1237 } // namespace i18n
OLDNEW
« no previous file with comments | « no previous file | third_party/libaddressinput/chromium/cpp/test/address_data_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698