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

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

Issue 7981047: Allow word separators in a few more Autofill regexes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 3 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 | chrome/browser/autofill/form_structure.h » ('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) 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 "chrome/browser/autofill/autofill_regex_constants.h" 9 #include "chrome/browser/autofill/autofill_regex_constants.h"
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 "|^시[·・]?도"; // ko-KR 115 "|^시[·・]?도"; // ko-KR
116 const char kAddressTypeSameAsRe[] = "same as"; 116 const char kAddressTypeSameAsRe[] = "same as";
117 const char kAddressTypeUseMyRe[] = "use my"; 117 const char kAddressTypeUseMyRe[] = "use my";
118 const char kBillingDesignatorRe[] = "bill"; 118 const char kBillingDesignatorRe[] = "bill";
119 const char kShippingDesignatorRe[] = "ship"; 119 const char kShippingDesignatorRe[] = "ship";
120 120
121 ///////////////////////////////////////////////////////////////////////////// 121 /////////////////////////////////////////////////////////////////////////////
122 // credit_card_field.cc 122 // credit_card_field.cc
123 ///////////////////////////////////////////////////////////////////////////// 123 /////////////////////////////////////////////////////////////////////////////
124 const char kNameOnCardRe[] = 124 const char kNameOnCardRe[] =
125 "card.?holder|name.?on.?card|ccname|ccfullname|owner" 125 "card.?holder|name.?on.?card|cc.?name|cc.?full.?name|owner"
126 "|karteninhaber" // de-DE 126 "|karteninhaber" // de-DE
127 "|nombre.*tarjeta" // es 127 "|nombre.*tarjeta" // es
128 "|nom.*carte" // fr-FR 128 "|nom.*carte" // fr-FR
129 "|nome.*cart" // it-IT 129 "|nome.*cart" // it-IT
130 "|名前" // ja-JP 130 "|名前" // ja-JP
131 "|Имя.*карты" // ru 131 "|Имя.*карты" // ru
132 "|信用卡开户名|开户名|持卡人姓名" // zh-CN 132 "|信用卡开户名|开户名|持卡人姓名" // zh-CN
133 "|持卡人姓名"; // zh-TW 133 "|持卡人姓名"; // zh-TW
134 const char kNameOnCardContextualRe[] = 134 const char kNameOnCardContextualRe[] =
135 "name"; 135 "name";
136 const char kCardNumberRe[] = 136 const char kCardNumberRe[] =
137 "card.?number|card.?#|card.?no|ccnum|acctnum" 137 "card.?number|card.?#|card.?no|cc.?num|acct.?num"
138 "|nummer" // de-DE 138 "|nummer" // de-DE
139 "|credito|numero|número" // es 139 "|credito|numero|número" // es
140 "|numéro" // fr-FR 140 "|numéro" // fr-FR
141 "|カード番号" // ja-JP 141 "|カード番号" // ja-JP
142 "|Номер.*карты" // ru 142 "|Номер.*карты" // ru
143 "|信用卡号|信用卡号码" // zh-CN 143 "|信用卡号|信用卡号码" // zh-CN
144 "|信用卡卡號" // zh-TW 144 "|信用卡卡號" // zh-TW
145 "|카드"; // ko-KR 145 "|카드"; // ko-KR
146 const char kCardCvcRe[] = 146 const char kCardCvcRe[] =
147 "verification|card identification|security code|cvn|cvv|cvc|csc"; 147 "verification|card identification|security code|cvn|cvv|cvc|csc";
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 "prefix|exchange" 288 "prefix|exchange"
289 "|preselection" // fr-FR 289 "|preselection" // fr-FR
290 "|ddd"; // pt-BR, pt-PT 290 "|ddd"; // pt-BR, pt-PT
291 const char kPhoneSuffixRe[] = 291 const char kPhoneSuffixRe[] =
292 "suffix"; 292 "suffix";
293 const char kPhoneExtensionRe[] = 293 const char kPhoneExtensionRe[] =
294 "\\bext|ext\\b|extension" 294 "\\bext|ext\\b|extension"
295 "|ramal"; // pt-BR, pt-PT 295 "|ramal"; // pt-BR, pt-PT
296 296
297 } // namespace autofill 297 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/form_structure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698