Home
last modified time | relevance | path

Searched refs:first_char (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp38 EXPECT_EQ(std::u16string(u"H").size(), new_string->value->spans[0].first_char); in TEST()
42 EXPECT_EQ(std::u16string(u"He").size(), new_string->value->spans[1].first_char); in TEST()
46 EXPECT_EQ(std::u16string(u"Hello ").size(), new_string->value->spans[2].first_char); in TEST()
58 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST()
61 EXPECT_EQ(std::u16string(u"[Ĥ").size(), new_string->value->spans[1].first_char); in TEST()
64 EXPECT_EQ(std::u16string(u"[Ĥé").size(), new_string->value->spans[2].first_char); in TEST()
67 EXPECT_EQ(std::u16string(u"[Ĥéļļö ").size(), new_string->value->spans[3].first_char); in TEST()
85 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST()
89 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[1].first_char); in TEST()
107 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST()
[all …]
DPseudolocaleGenerator.cpp38 uint32_t first_char; member
45 if (left.first_char < right.first_char) { in operator <()
47 } else if (left.first_char > right.first_char) { in operator <()
56 return UnifiedSpan{*span.name, span.first_char, span.last_char}; in SpanToUnifiedSpan()
149 if (parent_span == nullptr || parent_span->last_char > span->first_char) { in PseudolocalizeStyledString()
152 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); in PseudolocalizeStyledString()
165 span->first_char = new_cursor; in PseudolocalizeStyledString()
210 localized.spans.push_back(Span{std::move(span.tag.value()), span.first_char, span.last_char}); in PseudolocalizeStyledString()
/frameworks/base/tools/aapt2/
DStringPool.cpp132 if (span.first_char != rhs_span.first_char || span.last_char != rhs_span.last_char || in operator ==()
202 Span{MakeRef(span.name), span.first_char, span.last_char}); in MakeRef()
222 Span{MakeRef(*span.name), span.first_char, span.last_char}); in MakeRef()
420 span->firstChar = s.first_char; in Flatten()
DStringPool.h36 uint32_t first_char; member
130 uint32_t first_char; member
DStringPool_test.cpp156 EXPECT_EQ(2u, span.first_char); in TEST()
DResourceParser_test.cpp120 EXPECT_EQ(17u, str->value->spans[0].first_char); in TEST_F()
124 EXPECT_EQ(24u, str->value->spans[1].first_char); in TEST_F()
DResourceValues.cpp258 *out << " " << *span.name << ":" << span.first_char << "," in Print()