Home
last modified time | relevance | path

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

/external/icing/icing/util/
Dcharacter-iterator.cc90 bool CharacterIterator::MoveToUtf16(int desired_utf16_index) { in MoveToUtf16() argument
91 return (desired_utf16_index > utf16_index_) in MoveToUtf16()
92 ? AdvanceToUtf16(desired_utf16_index) in MoveToUtf16()
93 : RewindToUtf16(desired_utf16_index); in MoveToUtf16()
96 bool CharacterIterator::AdvanceToUtf16(int desired_utf16_index) { in AdvanceToUtf16() argument
97 while (utf16_index_ < desired_utf16_index) { in AdvanceToUtf16()
105 if (utf16_index_ + utf16_length > desired_utf16_index) { in AdvanceToUtf16()
121 bool CharacterIterator::RewindToUtf16(int desired_utf16_index) { in RewindToUtf16() argument
122 if (desired_utf16_index < 0) { in RewindToUtf16()
125 while (utf16_index_ > desired_utf16_index) { in RewindToUtf16()
Dcharacter-iterator.h54 bool MoveToUtf16(int desired_utf16_index);
60 bool AdvanceToUtf16(int desired_utf16_index);
64 bool RewindToUtf16(int desired_utf16_index);