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

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

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial. Created 6 years, 7 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
OLDNEW
(Empty)
1 // Copyright (C) 2013 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (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
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #include <libaddressinput/address_field.h>
16
17 #include <ostream>
18
19 namespace i18n {
20 namespace addressinput {
21
22 std::ostream& operator<<(std::ostream& o, AddressField field) {
23 switch (field) {
24 case COUNTRY:
25 o << "COUNTRY";
26 break;
27 case ADMIN_AREA:
28 o << "ADMIN_AREA";
29 break;
30 case LOCALITY:
31 o << "LOCALITY";
32 break;
33 case DEPENDENT_LOCALITY:
34 o << "DEPENDENT_LOCALITY";
35 break;
36 case SORTING_CODE:
37 o << "SORTING_CODE";
38 break;
39 case POSTAL_CODE:
40 o << "POSTAL_CODE";
41 break;
42 case STREET_ADDRESS:
43 o << "STREET_ADDRESS";
44 break;
45 case ORGANIZATION:
46 o << "ORGANIZATION";
47 break;
48 case RECIPIENT:
49 o << "RECIPIENT";
50 break;
51 default:
52 o << "[INVALID]";
53 break;
54 }
55 return o;
56 }
57
58 } // namespace addressinput
59 } // namespace i18n
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698