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

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

Issue 1453193002: autofill: switch autofill_regexes to RE2 library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: *Autofill* - all tests passed Created 5 years 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 "|ciudad|provincia|localidad|poblacion" // es 103 "|ciudad|provincia|localidad|poblacion" // es
104 "|ville|commune" // fr-FR 104 "|ville|commune" // fr-FR
105 "|localita" // it-IT 105 "|localita" // it-IT
106 "|市区町村" // ja-JP 106 "|市区町村" // ja-JP
107 "|cidade" // pt-BR, pt-PT 107 "|cidade" // pt-BR, pt-PT
108 "|Город" // ru 108 "|Город" // ru
109 "|市" // zh-CN 109 "|市" // zh-CN
110 "|分區" // zh-TW 110 "|分區" // zh-TW
111 "|^시[^도·・]|시[·・]?군[·・]?구"; // ko-KR 111 "|^시[^도·・]|시[·・]?군[·・]?구"; // ko-KR
112 const char kStateRe[] = 112 const char kStateRe[] =
113 "(?<!united )state|county|region|province" 113 "state|county|region|province"
114 "|land" // de-DE 114 "|land" // de-DE
115 "|county|principality" // en-UK 115 "|county|principality" // en-UK
116 "|都道府県" // ja-JP 116 "|都道府県" // ja-JP
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 /////////////////////////////////////////////////////////////////////////////
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 "prefix|exchange" 290 "prefix|exchange"
291 "|preselection" // fr-FR 291 "|preselection" // fr-FR
292 "|ddd"; // pt-BR, pt-PT 292 "|ddd"; // pt-BR, pt-PT
293 const char kPhoneSuffixRe[] = 293 const char kPhoneSuffixRe[] =
294 "suffix"; 294 "suffix";
295 const char kPhoneExtensionRe[] = 295 const char kPhoneExtensionRe[] =
296 "\\bext|ext\\b|extension" 296 "\\bext|ext\\b|extension"
297 "|ramal"; // pt-BR, pt-PT 297 "|ramal"; // pt-BR, pt-PT
298 298
299 } // namespace autofill 299 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698