Home
last modified time | relevance | path

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

/frameworks/native/libs/utils/
DUnicode.cpp144 size_t num_to_read = 0; in utf32_at_internal() local
146 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80; in utf32_at_internal()
148 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf32_at_internal()
153 utf32 &= ~(to_ignore_mask << (6 * (num_to_read - 1))); in utf32_at_internal()
155 *num_read = num_to_read; in utf32_at_internal()
380 size_t num_to_read = 0; in utf8_length() local
382 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0x80; in utf8_length()
383 num_to_read < 5 && (first_char & mask); in utf8_length()
384 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf8_length()
392 if (num_to_read == 5) { in utf8_length()
[all …]