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

Side by Side Diff: components/autofill/browser/autofill_regex_constants.cc.utf8

Issue 13888008: Fix for forms with more than three address lines getting partially Autofilled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review revisions. Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains UTF8 strings that we want as char arrays. To avoid 5 // This file contains UTF8 strings that we want as char arrays. To avoid
6 // different compilers, we use a script to convert the UTF8 strings into 6 // different compilers, we use a script to convert the UTF8 strings into
7 // numeric literals (\x##). 7 // numeric literals (\x##).
8 8
9 #include "components/autofill/browser/autofill_regex_constants.h" 9 #include "components/autofill/browser/autofill_regex_constants.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "|complemento|addrcomplement" // pt-BR, pt-PT 57 "|complemento|addrcomplement" // pt-BR, pt-PT
58 "|Улица" // ru 58 "|Улица" // ru
59 "|地址2" // zh-CN 59 "|地址2" // zh-CN
60 "|주소.?2"; // ko-KR 60 "|주소.?2"; // ko-KR
61 const char kAddressLine2LabelRe[] = 61 const char kAddressLine2LabelRe[] =
62 "address" 62 "address"
63 "|adresse" // fr-FR 63 "|adresse" // fr-FR
64 "|indirizzo" // it-IT 64 "|indirizzo" // it-IT
65 "|地址" // zh-CN 65 "|地址" // zh-CN
66 "|주소"; // ko-KR 66 "|주소"; // ko-KR
67 const char kAddressLine3Re[] = 67 const char kAddressLinesExtraRe[] =
68 "address.*line3|address3|addr3|street|line3" 68 "address.*line[3-9]|address[3-9]|addr[3-9]|street|line[3-9]"
69 "|municipio" // es 69 "|municipio" // es
70 "|batiment|residence" // fr-FR 70 "|batiment|residence" // fr-FR
71 "|indirizzo3"; // it-IT 71 "|indirizzo[3-9]"; // it-IT
72 const char kCountryRe[] = 72 const char kCountryRe[] =
73 "country|countries|location" 73 "country|countries|location"
74 "|país|pais" // es 74 "|país|pais" // es
75 "|国" // ja-JP 75 "|国" // ja-JP
76 "|国家" // zh-CN 76 "|国家" // zh-CN
77 "|국가|나라"; // ko-KR 77 "|국가|나라"; // ko-KR
78 const char kZipCodeRe[] = 78 const char kZipCodeRe[] =
79 "zip|postal|post.*code|pcode|^1z$" 79 "zip|postal|post.*code|pcode|^1z$"
80 "|postleitzahl" // de-DE 80 "|postleitzahl" // de-DE
81 "|\\bcp\\b" // es 81 "|\\bcp\\b" // es
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 "prefix|exchange" 284 "prefix|exchange"
285 "|preselection" // fr-FR 285 "|preselection" // fr-FR
286 "|ddd"; // pt-BR, pt-PT 286 "|ddd"; // pt-BR, pt-PT
287 const char kPhoneSuffixRe[] = 287 const char kPhoneSuffixRe[] =
288 "suffix"; 288 "suffix";
289 const char kPhoneExtensionRe[] = 289 const char kPhoneExtensionRe[] =
290 "\\bext|ext\\b|extension" 290 "\\bext|ext\\b|extension"
291 "|ramal"; // pt-BR, pt-PT 291 "|ramal"; // pt-BR, pt-PT
292 292
293 } // namespace autofill 293 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/browser/autofill_regex_constants.h ('k') | components/autofill/browser/form_structure_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698