Lines Matching refs:span
57 inline static UnifiedSpan SpanToUnifiedSpan(const android::StringPool::Span& span) { in SpanToUnifiedSpan() argument
58 return UnifiedSpan{*span.name, span.first_char, span.last_char}; in SpanToUnifiedSpan()
147 UnifiedSpan* span = span_idx >= merged_spans.size() ? nullptr : &merged_spans[span_idx]; in PseudolocalizeStyledString() local
150 if (span != nullptr) { in PseudolocalizeStyledString()
151 if (parent_span == nullptr || parent_span->last_char > span->first_char) { in PseudolocalizeStyledString()
154 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); in PseudolocalizeStyledString()
167 span->first_char = new_cursor; in PseudolocalizeStyledString()
168 if (!span->tag) { in PseudolocalizeStyledString()
211 for (UnifiedSpan& span : merged_spans) { in PseudolocalizeStyledString()
212 if (span.tag) { in PseudolocalizeStyledString()
214 android::Span{std::move(span.tag.value()), span.first_char, span.last_char}); in PseudolocalizeStyledString()