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

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

Issue 1694443004: [Autofill] Add credit card first and last name heuristics predictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/core/browser/autofill_regex_constants.h" 9 #include "components/autofill/core/browser/autofill_regex_constants.h"
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 "|estado|provincia" // pt-BR, pt-PT 117 "|estado|provincia" // pt-BR, pt-PT
118 "|область" // ru 118 "|область" // ru
119 "|省" // zh-CN 119 "|省" // zh-CN
120 "|地區" // zh-TW 120 "|地區" // zh-TW
121 "|^시[·・]?도"; // ko-KR 121 "|^시[·・]?도"; // ko-KR
122 122
123 ///////////////////////////////////////////////////////////////////////////// 123 /////////////////////////////////////////////////////////////////////////////
124 // credit_card_field.cc 124 // credit_card_field.cc
125 ///////////////////////////////////////////////////////////////////////////// 125 /////////////////////////////////////////////////////////////////////////////
126 const char kNameOnCardRe[] = 126 const char kNameOnCardRe[] =
127 "card.?(?:holder|owner)|name.*\\bon\\b.*card" 127 "card.?(?:holder|owner)|name.*(\\b)?on(\\b)?.*card"
128 "|(?:card|cc).?name|cc.?full.?name" 128 "|(?:card|cc).?name|cc.?full.?name"
129 "|karteninhaber" // de-DE 129 "|karteninhaber" // de-DE
130 "|nombre.*tarjeta" // es 130 "|nombre.*tarjeta" // es
131 "|nom.*carte" // fr-FR 131 "|nom.*carte" // fr-FR
132 "|nome.*cart" // it-IT 132 "|nome.*cart" // it-IT
133 "|名前" // ja-JP 133 "|名前" // ja-JP
134 "|Имя.*карты" // ru 134 "|Имя.*карты" // ru
135 "|信用卡开户名|开户名|持卡人姓名" // zh-CN 135 "|信用卡开户名|开户名|持卡人姓名" // zh-CN
136 "|持卡人姓名"; // zh-TW 136 "|持卡人姓名"; // zh-TW
137 const char kNameOnCardContextualRe[] = 137 const char kNameOnCardContextualRe[] =
138 "name"; 138 "name";
139 const char kCardNumberRe[] = 139 const char kCardNumberRe[] =
140 "(add)?(?:card|cc|acct).?(?:number|#|no|num|field)" 140 "(add)?(?:card|cc|acct).?(?:number|#|no|num|field)"
141 "|nummer" // de-DE 141 "|nummer" // de-DE
142 "|credito|numero|número" // es 142 "|credito|numero|número" // es
143 "|numéro" // fr-FR 143 "|numéro" // fr-FR
144 "|カード番号" // ja-JP 144 "|カード番号" // ja-JP
145 "|Номер.*карты" // ru 145 "|Номер.*карты" // ru
146 "|信用卡号|信用卡号码" // zh-CN 146 "|信用卡号|信用卡号码" // zh-CN
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 "prefix|exchange" 291 "prefix|exchange"
292 "|preselection" // fr-FR 292 "|preselection" // fr-FR
293 "|ddd"; // pt-BR, pt-PT 293 "|ddd"; // pt-BR, pt-PT
294 const char kPhoneSuffixRe[] = 294 const char kPhoneSuffixRe[] =
295 "suffix"; 295 "suffix";
296 const char kPhoneExtensionRe[] = 296 const char kPhoneExtensionRe[] =
297 "\\bext|ext\\b|extension" 297 "\\bext|ext\\b|extension"
298 "|ramal"; // pt-BR, pt-PT 298 "|ramal"; // pt-BR, pt-PT
299 299
300 } // namespace autofill 300 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_profile.cc ('k') | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698