Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/tools/
Dextract_unicode_properties.py16 def __init__(self, first_char, last_char, prop_type): argument
17 self.first_char = first_char
22 return self.first_char
25 if self.last_char + 1 == other.first_char and self.prop_type == other.prop_type:
36 "{", self.first_char, self.last_char, ' | '.join(types), "}")
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp40 EXPECT_EQ(std::u16string(u"H").size(), new_string->value->spans[0].first_char); in TEST()
44 EXPECT_EQ(std::u16string(u"He").size(), new_string->value->spans[1].first_char); in TEST()
48 EXPECT_EQ(std::u16string(u"Hello ").size(), new_string->value->spans[2].first_char); in TEST()
60 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST()
63 EXPECT_EQ(std::u16string(u"[Ĥ").size(), new_string->value->spans[1].first_char); in TEST()
66 EXPECT_EQ(std::u16string(u"[Ĥé").size(), new_string->value->spans[2].first_char); in TEST()
69 EXPECT_EQ(std::u16string(u"[Ĥéļļö ").size(), new_string->value->spans[3].first_char); in TEST()
87 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST()
91 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[1].first_char); in TEST()
109 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST()
[all …]
DPseudolocaleGenerator.cpp39 uint32_t first_char; member
46 if (left.first_char < right.first_char) { in operator <()
48 } else if (left.first_char > right.first_char) { in operator <()
57 return UnifiedSpan{*span.name, span.first_char, span.last_char}; in SpanToUnifiedSpan()
150 if (parent_span == nullptr || parent_span->last_char > span->first_char) { in PseudolocalizeStyledString()
153 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); in PseudolocalizeStyledString()
166 span->first_char = new_cursor; in PseudolocalizeStyledString()
211 localized.spans.push_back(Span{std::move(span.tag.value()), span.first_char, span.last_char}); in PseudolocalizeStyledString()
/frameworks/base/tools/aapt2/text/
DUnicode.cpp37 char32_t first_char; member
53 if (iter != iter_end && codepoint >= iter->first_char) { in FindCharacterProperties()
/frameworks/base/tools/aapt2/
DStringPool.h37 uint32_t first_char; member
138 uint32_t first_char; member
DStringPool.cpp136 if (span.first_char != rhs_span.first_char || span.last_char != rhs_span.last_char || in operator ==()
214 entry->spans.emplace_back(Span{MakeRef(span.name), span.first_char, span.last_char}); in MakeRef()
229 entry->spans.emplace_back(Span{MakeRef(*span.name), span.first_char, span.last_char}); in MakeRef()
479 span->firstChar = util::HostToDevice32(s.first_char); in Flatten()
DResourceParser_test.cpp145 EXPECT_THAT(str->value->spans[0].first_char, Eq(18u)); in TEST_F()
149 EXPECT_THAT(str->value->spans[1].first_char, Eq(25u)); in TEST_F()
212 EXPECT_THAT(str->value->spans[0].first_char, Eq(1u)); in TEST_F()
216 EXPECT_THAT(str->value->spans[1].first_char, Eq(5u)); in TEST_F()
293 EXPECT_THAT(str->value->spans[0].first_char, Eq(11u)); in TEST_F()
DStringPool_test.cpp170 EXPECT_THAT(span.first_char, Eq(2u)); in TEST()
DResourceUtils.cpp941 span.first_char = span.last_char = utf16_len_; in StartSpan()
DResourceValues.cpp335 *out << " " << *span.name << ":" << span.first_char << "," << span.last_char; in Print()
DResources.proto324 uint32 first_char = 2; field
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp477 pb_span->set_first_char(span.first_char); in Visit()
DProtoSerialize_test.cpp159 EXPECT_THAT(actual_styled_str->value->spans[0].first_char, Eq(0u)); in TEST()
DProtoDeserialize.cpp915 style_str.spans.push_back(Span{pb_span.tag(), pb_span.first_char(), pb_span.last_char()}); in DeserializeItemFromPb()