| OLD | NEW |
| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 "|nummer" // de-DE | 140 "|nummer" // de-DE |
| 141 "|credito|numero|número" // es | 141 "|credito|numero|número" // es |
| 142 "|numéro" // fr-FR | 142 "|numéro" // fr-FR |
| 143 "|カード番号" // ja-JP | 143 "|カード番号" // ja-JP |
| 144 "|Номер.*карты" // ru | 144 "|Номер.*карты" // ru |
| 145 "|信用卡号|信用卡号码" // zh-CN | 145 "|信用卡号|信用卡号码" // zh-CN |
| 146 "|信用卡卡號" // zh-TW | 146 "|信用卡卡號" // zh-TW |
| 147 "|카드"; // ko-KR | 147 "|카드"; // ko-KR |
| 148 const char kCardCvcRe[] = | 148 const char kCardCvcRe[] = |
| 149 "verification|card identification|security code|card code" | 149 "verification|card identification|security code|card code" |
| 150 "|cvn|cvv|cvc|csc|cvd|cid" | 150 "|cvn|cvv|cvc|csc|cvd|cid|ccv" |
| 151 "|\\bcid\\b"; | 151 "|\\bcid\\b"; |
| 152 const char kCardTypeRe[] = | 152 const char kCardTypeRe[] = |
| 153 "(card|cc|payment).?type|payment.?method|card.*brand"; | 153 "(card|cc|payment).?type|payment.?method|card.*brand"; |
| 154 | 154 |
| 155 // "Expiration date" is the most common label here, but some pages have | 155 // "Expiration date" is the most common label here, but some pages have |
| 156 // "Expires", "exp. date" or "exp. month" and "exp. year". We also look | 156 // "Expires", "exp. date" or "exp. month" and "exp. year". We also look |
| 157 // for the field names ccmonth and ccyear, which appear on at least 4 of | 157 // for the field names ccmonth and ccyear, which appear on at least 4 of |
| 158 // our test pages. | 158 // our test pages. |
| 159 | 159 |
| 160 // On at least one page (The China Shop2.html) we find only the labels | 160 // On at least one page (The China Shop2.html) we find only the labels |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 "prefix|exchange" | 289 "prefix|exchange" |
| 290 "|preselection" // fr-FR | 290 "|preselection" // fr-FR |
| 291 "|ddd"; // pt-BR, pt-PT | 291 "|ddd"; // pt-BR, pt-PT |
| 292 const char kPhoneSuffixRe[] = | 292 const char kPhoneSuffixRe[] = |
| 293 "suffix"; | 293 "suffix"; |
| 294 const char kPhoneExtensionRe[] = | 294 const char kPhoneExtensionRe[] = |
| 295 "\\bext|ext\\b|extension" | 295 "\\bext|ext\\b|extension" |
| 296 "|ramal"; // pt-BR, pt-PT | 296 "|ramal"; // pt-BR, pt-PT |
| 297 | 297 |
| 298 } // namespace autofill | 298 } // namespace autofill |
| OLD | NEW |