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

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: Created 4 years, 10 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 kLastNameOnCardContextualRe[] =
Mathieu 2016/02/23 15:23:03 I wonder if kLastNameRe would do?
sebsg 2016/02/24 18:49:44 Done.
140 "last.*name"
141 "|name.*last";
139 const char kCardNumberRe[] = 142 const char kCardNumberRe[] =
140 "(?:card|cc|acct).?(?:number|#|no|num)" 143 "(?:card|cc|acct).?(?:number|#|no|num)"
141 "|nummer" // de-DE 144 "|nummer" // de-DE
142 "|credito|numero|número" // es 145 "|credito|numero|número" // es
143 "|numéro" // fr-FR 146 "|numéro" // fr-FR
144 "|カード番号" // ja-JP 147 "|カード番号" // ja-JP
145 "|Номер.*карты" // ru 148 "|Номер.*карты" // ru
146 "|信用卡号|信用卡号码" // zh-CN 149 "|信用卡号|信用卡号码" // zh-CN
147 "|信用卡卡號" // zh-TW 150 "|信用卡卡號" // zh-TW
148 "|카드"; // ko-KR 151 "|카드"; // ko-KR
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 "prefix|exchange" 294 "prefix|exchange"
292 "|preselection" // fr-FR 295 "|preselection" // fr-FR
293 "|ddd"; // pt-BR, pt-PT 296 "|ddd"; // pt-BR, pt-PT
294 const char kPhoneSuffixRe[] = 297 const char kPhoneSuffixRe[] =
295 "suffix"; 298 "suffix";
296 const char kPhoneExtensionRe[] = 299 const char kPhoneExtensionRe[] =
297 "\\bext|ext\\b|extension" 300 "\\bext|ext\\b|extension"
298 "|ramal"; // pt-BR, pt-PT 301 "|ramal"; // pt-BR, pt-PT
299 302
300 } // namespace autofill 303 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698