Searched refs:utf8_length (Results 1 – 9 of 9) sorted by relevance
/external/icing/icing/util/ |
D | character-iterator.cc | 51 int utf8_length = i18n_utils::GetUtf8Length(uchar32); in AdvanceToUtf8() local 52 if (utf8_index_ + utf8_length > desired_utf8_index) { in AdvanceToUtf8() 56 utf8_index_ += utf8_length; in AdvanceToUtf8() 109 int utf8_length = i18n_utils::GetUtf8Length(uchar32); in AdvanceToUtf16() local 110 if (utf8_index_ + utf8_length > text_.length()) { in AdvanceToUtf16() 114 utf8_index_ += utf8_length; in AdvanceToUtf16() 161 int utf8_length = i18n_utils::GetUtf8Length(uchar32); in AdvanceToUtf32() local 162 if (utf8_index_ + utf8_length > text_.length()) { in AdvanceToUtf32() 166 utf8_index_ += utf8_length; in AdvanceToUtf32()
|
/external/icing/icing/transform/map/ |
D | map-normalizer.cc | 48 int utf8_length = i18n_utils::GetUtf8Length(uchar32); in NormalizeTerm() local 53 absl_ports::StrAppend(&normalized_text, term.substr(i, utf8_length)); in NormalizeTerm() 73 absl_ports::StrAppend(&normalized_text, term.substr(i, utf8_length)); in NormalizeTerm()
|
/external/igt-gpu-tools/lib/uwildmat/ |
D | uwildmat.c | 115 utf8_length(const unsigned char *start, const unsigned char *end) in utf8_length() function 196 length = utf8_length(start, end); in utf8_decode() 297 text += ISUTF8(*text) ? utf8_length(text, NULL) : 1; in match_pattern() 322 width = ISUTF8(*text) ? utf8_length(text, NULL) : 1; in match_pattern() 329 width = ISUTF8(*text) ? utf8_length(text, NULL) : 1; in match_pattern()
|
/external/icing/icing/transform/icu/ |
D | icu-normalizer.cc | 179 int utf8_length = i18n_utils::GetUtf8Length(uchar32); in NormalizeLatin() local 180 absl_ports::StrAppend(&result, term.substr(i, utf8_length)); in NormalizeLatin()
|
/external/iperf3/src/ |
D | cjson.c | 662 unsigned char utf8_length = 0; in utf16_literal_to_utf8() local 726 utf8_length = 1; in utf16_literal_to_utf8() 731 utf8_length = 2; in utf16_literal_to_utf8() 737 utf8_length = 3; in utf16_literal_to_utf8() 743 utf8_length = 4; in utf16_literal_to_utf8() 753 for (utf8_position = (unsigned char)(utf8_length - 1); utf8_position > 0; utf8_position--) in utf16_literal_to_utf8() 760 if (utf8_length > 1) in utf16_literal_to_utf8() 769 *output_pointer += utf8_length; in utf16_literal_to_utf8()
|
/external/libtextclassifier/native/utils/utf8/ |
D | unicodetext.h | 125 int utf8_length() const { in utf8_length() function
|
/external/libtextclassifier/native/utils/ |
D | wordpiece_tokenizer.cc | 60 codepoint_offset += it.utf8_length(); in LongestMatchStartingAt()
|
/external/python/cpython3/Include/cpython/ |
D | unicodeobject.h | 226 Py_ssize_t utf8_length; /* Number of bytes in utf8, excluding the member
|
/external/python/cpython3/Objects/ |
D | unicodeobject.c | 114 (((PyCompactUnicodeObject*)(op))->utf8_length) 566 CHECK(compact->utf8_length == ascii->length); in _PyUnicode_CheckConsistency() 588 CHECK(compact->utf8_length == 0); in _PyUnicode_CheckConsistency() 1379 (void *)compact->utf8, compact->utf8_length); in _PyUnicode_Dump() 1474 unicode->utf8_length = 0; in PyUnicode_New() 1478 unicode->utf8_length = 0; in PyUnicode_New()
|