Home
last modified time | relevance | path

Searched refs:utf8_index_ (Results 1 – 2 of 2) sorted by relevance

/external/icing/icing/util/
Dcharacter-iterator.cc34 return (desired_utf8_index > utf8_index_) ? AdvanceToUtf8(desired_utf8_index) in MoveToUtf8()
44 while (utf8_index_ < desired_utf8_index) { in AdvanceToUtf8()
46 i18n_utils::GetUChar32At(text_.data(), text_.length(), utf8_index_); in AdvanceToUtf8()
52 if (utf8_index_ + utf8_length > desired_utf8_index) { in AdvanceToUtf8()
56 utf8_index_ += utf8_length; in AdvanceToUtf8()
69 while (utf8_index_ > desired_utf8_index) { in RewindToUtf8()
70 --utf8_index_; in RewindToUtf8()
71 utf8_index_ = GetUTF8StartPosition(text_, utf8_index_); in RewindToUtf8()
72 if (utf8_index_ < 0) { in RewindToUtf8()
79 i18n_utils::GetUChar32At(text_.data(), text_.length(), utf8_index_); in RewindToUtf8()
[all …]
Dcharacter-iterator.h32 utf8_index_(utf8_index), in CharacterIterator()
80 int utf8_index() const { return utf8_index_; } in utf8_index()
85 return text_ == rhs.text_ && utf8_index_ == rhs.utf8_index_ &&
90 return IcingStringUtil::StringPrintf("(u8:%d,u16:%d,u32:%d)", utf8_index_, in DebugString()
96 int utf8_index_; variable