Searched refs:FormatElement (Results 1 – 12 of 12) sorted by relevance
29 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 …]
25 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()
38 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()
25 FormatElement::FormatElement(AddressField field) : field_(field), literal_() {} in FormatElement() function in i18n::addressinput::FormatElement27 FormatElement::FormatElement(const std::string& literal) in FormatElement() function in i18n::addressinput::FormatElement32 FormatElement::FormatElement() in FormatElement() function in i18n::addressinput::FormatElement35 bool FormatElement::operator==(const FormatElement& other) const { in operator ==()43 const i18n::addressinput::FormatElement& element) { in operator <<()
30 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);
33 class FormatElement; variable69 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_;
66 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()
26 class FormatElement; variable33 std::vector<FormatElement>* fields);
145 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()
103 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()
60 FormatElement(field)) != rule.GetFormat().end(); in IsFieldUsed()
1413 std::vector<FormatElement> fields; in InitMaxLookupKeyDepth()1425 if (std::find(fields.begin(), fields.end(), FormatElement(field)) == in InitMaxLookupKeyDepth()