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 #include "components/autofill/core/browser/autofill_regexes.h" | 5 #include "components/autofill/core/common/autofill_regexes.h" |
6 | 6 |
7 #include "base/containers/scoped_ptr_hash_map.h" | 7 #include "base/containers/scoped_ptr_hash_map.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "third_party/icu/source/i18n/unicode/regex.h" | 12 #include "third_party/icu/source/i18n/unicode/regex.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 icu::UnicodeString icu_input(input.data(), input.length()); | 71 icu::UnicodeString icu_input(input.data(), input.length()); |
72 matcher->reset(icu_input); | 72 matcher->reset(icu_input); |
73 | 73 |
74 UErrorCode status = U_ZERO_ERROR; | 74 UErrorCode status = U_ZERO_ERROR; |
75 UBool match = matcher->find(0, status); | 75 UBool match = matcher->find(0, status); |
76 DCHECK(U_SUCCESS(status)); | 76 DCHECK(U_SUCCESS(status)); |
77 return match == TRUE; | 77 return match == TRUE; |
78 } | 78 } |
79 | 79 |
80 } // namespace autofill | 80 } // namespace autofill |
OLD | NEW |