Home
last modified time | relevance | path

Searched refs:FormatElement (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/third_party/libaddressinput/src/cpp/test/
Daddress_field_util_test.cc29 using i18n::addressinput::FormatElement;
40 std::vector<FormatElement> actual; in TEST()
43 std::vector<FormatElement> expected; in TEST()
44 expected.push_back(FormatElement(ORGANIZATION)); in TEST()
45 expected.push_back(FormatElement()); in TEST()
46 expected.push_back(FormatElement(RECIPIENT)); in TEST()
47 expected.push_back(FormatElement()); in TEST()
48 expected.push_back(FormatElement(STREET_ADDRESS)); in TEST()
49 expected.push_back(FormatElement()); in TEST()
50 expected.push_back(FormatElement("AX-")); in TEST()
[all …]
Dformat_element_test.cc25 using i18n::addressinput::FormatElement;
30 oss << FormatElement(); in TEST()
36 oss << FormatElement("Text"); in TEST()
42 oss << FormatElement(SORTING_CODE); in TEST()
47 EXPECT_TRUE(FormatElement().IsNewline()); in TEST()
48 EXPECT_FALSE(FormatElement(" ").IsNewline()); in TEST()
49 EXPECT_FALSE(FormatElement(SORTING_CODE).IsNewline()); in TEST()
53 EXPECT_FALSE(FormatElement().IsField()); in TEST()
54 EXPECT_FALSE(FormatElement(" ").IsField()); in TEST()
55 EXPECT_TRUE(FormatElement(SORTING_CODE).IsField()); in TEST()
Drule_test.cc38 using i18n::addressinput::FormatElement;
140 std::vector<FormatElement> expected; in TEST()
141 expected.push_back(FormatElement(ADMIN_AREA)); in TEST()
142 expected.push_back(FormatElement(LOCALITY)); in TEST()
161 std::vector<FormatElement> expected; in TEST()
162 expected.push_back(FormatElement(LOCALITY)); in TEST()
163 expected.push_back(FormatElement(ADMIN_AREA)); in TEST()
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
Dformat_element.cc25 FormatElement::FormatElement(AddressField field) : field_(field), literal_() {} in FormatElement() function in i18n::addressinput::FormatElement
27 FormatElement::FormatElement(const std::string& literal) in FormatElement() function in i18n::addressinput::FormatElement
32 FormatElement::FormatElement() in FormatElement() function in i18n::addressinput::FormatElement
35 bool FormatElement::operator==(const FormatElement& other) const { in operator ==()
43 const i18n::addressinput::FormatElement& element) { in operator <<()
Dformat_element.h30 class FormatElement {
33 explicit FormatElement(AddressField field);
36 explicit FormatElement(const std::string& literal);
39 FormatElement();
50 bool operator==(const FormatElement& other) const;
68 const i18n::addressinput::FormatElement& field);
Drule.h33 class FormatElement; variable
69 const std::vector<FormatElement>& GetFormat() const { return format_; } in GetFormat()
74 const std::vector<FormatElement>& GetLatinFormat() const { in GetLatinFormat()
131 std::vector<FormatElement> format_;
132 std::vector<FormatElement> latin_format_;
Daddress_field_util.cc66 std::vector<FormatElement>* elements) { in ParseFormatRule()
80 elements->push_back(FormatElement(std::string(prev, next))); in ParseFormatRule()
89 elements->push_back(FormatElement()); in ParseFormatRule()
91 elements->push_back(FormatElement(ParseFieldToken(*next))); in ParseFormatRule()
96 elements->push_back(FormatElement(std::string(prev, format.end()))); in ParseFormatRule()
Daddress_field_util.h26 class FormatElement; variable
33 std::vector<FormatElement>* fields);
Daddress_formatter.cc145 const std::vector<FormatElement>& format = in GetFormattedNationalAddress()
155 std::vector<FormatElement> pruned_format; in GetFormattedNationalAddress()
156 for (std::vector<FormatElement>::const_iterator in GetFormattedNationalAddress()
180 for (std::vector<FormatElement>::const_iterator in GetFormattedNationalAddress()
Daddress_ui.cc103 const std::vector<FormatElement>& format = in BuildComponents()
114 for (std::vector<FormatElement>::const_iterator format_it = format.begin(); in BuildComponents()
124 std::vector<FormatElement>::const_iterator next_format_it = format_it + 1; in BuildComponents()
Daddress_metadata.cc60 FormatElement(field)) != rule.GetFormat().end(); in IsFieldUsed()
Dregion_data_constants.cc1413 std::vector<FormatElement> fields; in InitMaxLookupKeyDepth()
1425 if (std::find(fields.begin(), fields.end(), FormatElement(field)) == in InitMaxLookupKeyDepth()