Home
last modified time | relevance | path

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

/external/icing/icing/tokenization/reverse_jni/
Dreverse-jni-language-segmenter.cc94 term_end_exclusive_.utf8_index() - term_start_.utf8_index(); in GetTerm()
95 if (term_length > 0 && std::isspace(text_[term_start_.utf8_index()])) { in GetTerm()
99 return text_.substr(term_start_.utf8_index(), term_length); in GetTerm()
142 if (offset_iterator.utf8_index() != text_.length()) { in ResetToTermStartingAfterUtf32()
152 if (offset_iterator.utf8_index() == text_.length()) { in ResetToTermStartingAfterUtf32()
156 offset_iterator.utf32_index(), offset_iterator.utf8_index(), in ResetToTermStartingAfterUtf32()
213 if (offset_iterator.utf8_index() != text_.length()) { in ResetToTermEndingBeforeUtf32()
290 if (i18n_utils::IsAscii(text_[term_start_.utf8_index()])) { in IsValidTerm()
296 if (i18n_utils::IsAlphabeticAt(text_, term_start_.utf8_index())) { in IsValidTerm()
/external/icing/icing/testing/
Dicu-i18n-test-utils.cc31 int utf8_index = 0; in UCharToString() local
35 U8_APPEND(utf8_buffer, utf8_index, sizeof(utf8_buffer), uchar, has_error); in UCharToString()
41 result.append(reinterpret_cast<char*>(utf8_buffer), utf8_index); in UCharToString()
/external/icing/icing/tokenization/icu/
Dicu-language-segmenter.cc134 if (offset_iterator_.utf8_index() != text_.length()) { in ResetToTermStartingAfterUtf32()
142 if (offset_iterator_.utf8_index() == text_.length()) { in ResetToTermStartingAfterUtf32()
146 offset_iterator_.utf32_index(), offset_iterator_.utf8_index(), in ResetToTermStartingAfterUtf32()
153 ubrk_following(break_iterator_, offset_iterator_.utf8_index()); in ResetToTermStartingAfterUtf32()
186 if (offset_iterator_.utf8_index() != text_.length()) { in ResetToTermEndingBeforeUtf32()
200 ubrk_preceding(break_iterator_, offset_iterator_.utf8_index()); in ResetToTermEndingBeforeUtf32()
229 if (term_end_index_exclusive_ > offset_iterator_.utf8_index() || in ResetToTermEndingBeforeUtf32()
/external/icing/icing/util/
Dcharacter-iterator.h29 CharacterIterator(std::string_view text, int utf8_index, int utf16_index, in CharacterIterator() argument
32 utf8_index_(utf8_index), in CharacterIterator()
80 int utf8_index() const { return utf8_index_; } in utf8_index() function
Di18n-utils.cc158 int utf8_index = 0; in AppendUchar32ToUtf8() local
162 U8_APPEND(utf8_buffer, utf8_index, sizeof(utf8_buffer), uchar, has_error); in AppendUchar32ToUtf8()
168 utf8_string->append(reinterpret_cast<char*>(utf8_buffer), utf8_index); in AppendUchar32ToUtf8()
/external/icing/icing/result/
Dsnippet-retriever.cc184 if (!i18n_utils::IsPunctuationAt(value, window_end_exclusive.utf8_index(), in IncludeTrailingPunctuation()
272 snippet_match.set_exact_match_byte_position(start_itr.utf8_index()); in RetrieveMatch()
274 snippet_match.set_exact_match_byte_length(end_itr.utf8_index() - in RetrieveMatch()
275 start_itr.utf8_index()); in RetrieveMatch()
313 snippet_match.set_window_byte_position(window_start.utf8_index()); in RetrieveMatch()
315 snippet_match.set_window_byte_length(window_end.utf8_index() - in RetrieveMatch()
316 window_start.utf8_index()); in RetrieveMatch()
/external/skia/modules/svg/src/
DSkSVGText.cpp465 const auto utf8_index = fShapeClusterBuffer[i]; in commitRunBuffer() local
466 current_run.glyhPosAdjust[i] = fShapeBuffer.fUtf8PosAdjust[SkToInt(utf8_index)]; in commitRunBuffer()