Home | History | Annotate | Download | only in autofill

Lines Matching refs:PhoneField

29 PhoneField::Parser PhoneField::phone_field_grammars_[] = {
32 { PhoneField::REGEX_COUNTRY, PhoneField::FIELD_COUNTRY_CODE, 0 },
33 { PhoneField::REGEX_AREA, PhoneField::FIELD_AREA_CODE, 0 },
34 { PhoneField::REGEX_PHONE, PhoneField::FIELD_PHONE, 0 },
35 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
37 { PhoneField::REGEX_PHONE, PhoneField::FIELD_COUNTRY_CODE, 0 },
38 { PhoneField::REGEX_PHONE, PhoneField::FIELD_AREA_CODE, 3 },
39 { PhoneField::REGEX_PREFIX_SEPARATOR, PhoneField::FIELD_PHONE, 3 },
40 { PhoneField::REGEX_SUFFIX_SEPARATOR, PhoneField::FIELD_SUFFIX, 4 },
41 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
43 { PhoneField::REGEX_PHONE, PhoneField::FIELD_COUNTRY_CODE, 3 },
44 { PhoneField::REGEX_PHONE, PhoneField::FIELD_AREA_CODE, 3 },
45 { PhoneField::REGEX_PHONE, PhoneField::FIELD_PHONE, 3 },
46 { PhoneField::REGEX_PHONE, PhoneField::FIELD_SUFFIX, 4 },
47 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
49 { PhoneField::REGEX_AREA, PhoneField::FIELD_AREA_CODE, 0 },
50 { PhoneField::REGEX_PHONE, PhoneField::FIELD_PHONE, 0 },
51 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
53 { PhoneField::REGEX_PHONE, PhoneField::FIELD_AREA_CODE, 0 },
54 { PhoneField::REGEX_PHONE, PhoneField::FIELD_PHONE, 3 },
55 { PhoneField::REGEX_PHONE, PhoneField::FIELD_SUFFIX, 4 },
56 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
58 { PhoneField::REGEX_PHONE, PhoneField::FIELD_COUNTRY_CODE, 0 },
59 { PhoneField::REGEX_AREA_NOTEXT, PhoneField::FIELD_AREA_CODE, 0 },
60 { PhoneField::REGEX_PREFIX_SEPARATOR, PhoneField::FIELD_PHONE, 0 },
61 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
63 { PhoneField::REGEX_PHONE, PhoneField::FIELD_COUNTRY_CODE, 0 },
64 { PhoneField::REGEX_AREA_NOTEXT, PhoneField::FIELD_AREA_CODE, 0 },
65 { PhoneField::REGEX_PREFIX_SEPARATOR, PhoneField::FIELD_PHONE, 0 },
66 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
68 { PhoneField::REGEX_PHONE, PhoneField::FIELD_COUNTRY_CODE, 0 },
69 { PhoneField::REGEX_PREFIX_SEPARATOR, PhoneField::FIELD_AREA_CODE, 0 },
70 { PhoneField::REGEX_PREFIX_SEPARATOR, PhoneField::FIELD_PHONE, 0 },
71 { PhoneField::REGEX_SUFFIX_SEPARATOR, PhoneField::FIELD_SUFFIX, 0 },
72 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
74 { PhoneField::REGEX_PHONE, PhoneField::FIELD_AREA_CODE, 0 },
75 { PhoneField::REGEX_PREFIX, PhoneField::FIELD_PHONE, 0 },
76 { PhoneField::REGEX_SUFFIX, PhoneField::FIELD_SUFFIX, 0 },
77 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
79 { PhoneField::REGEX_PHONE, PhoneField::FIELD_AREA_CODE, 0 },
80 { PhoneField::REGEX_PREFIX_SEPARATOR, PhoneField::FIELD_PHONE, 3 },
81 { PhoneField::REGEX_SUFFIX_SEPARATOR, PhoneField::FIELD_SUFFIX, 4 },
82 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
84 { PhoneField::REGEX_PHONE, PhoneField::FIELD_COUNTRY_CODE, 0 },
85 { PhoneField::REGEX_PREFIX_SEPARATOR, PhoneField::FIELD_AREA_CODE, 0 },
86 { PhoneField::REGEX_SUFFIX_SEPARATOR, PhoneField::FIELD_PHONE, 0 },
87 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
89 { PhoneField::REGEX_AREA, PhoneField::FIELD_AREA_CODE, 0 },
90 { PhoneField::REGEX_PHONE, PhoneField::FIELD_PHONE, 0 },
91 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
93 { PhoneField::REGEX_PHONE, PhoneField::FIELD_PHONE, 0 },
94 { PhoneField::REGEX_SEPARATOR, FIELD_NONE, 0 },
97 PhoneField::~PhoneField() {}
100 PhoneField* PhoneField::Parse(std::vector<AutofillField*>::const_iterator* iter,
109 scoped_ptr<PhoneField> phone_field(new PhoneField);
115 phone_field->SetPhoneType(static_cast<PhoneField::PhoneType>(i));
124 PhoneField* PhoneField::ParseECML(
130 PhoneField* phone_field = new PhoneField();
138 bool PhoneField::GetFieldInfo(FieldTypeMap* field_type_map) const {
182 PhoneField::PhoneField() {
187 string16 PhoneField::GetCountryRegex() const {
192 string16 PhoneField::GetAreaRegex() const {
200 string16 PhoneField::GetAreaNoTextRegex() const {
205 string16 PhoneField::GetPhoneRegex() const {
215 string16 PhoneField::GetPrefixSeparatorRegex() const {
220 string16 PhoneField::GetPrefixRegex() const {
225 string16 PhoneField::GetSuffixSeparatorRegex() const {
230 string16 PhoneField::GetSuffixRegex() const {
235 string16 PhoneField::GetExtensionRegex() const {
240 string16 PhoneField::GetRegExp(RegexType regex_id) const {
259 bool PhoneField::ParseInternal(
260 PhoneField *phone_field,
326 void PhoneField::SetPhoneType(PhoneType phone_type) {