Home
last modified time | relevance | path

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

/external/avb/examples/uefi/
Duefi_avb_util.c27 bool uefi_avb_utf8_to_ucs2(const uint8_t* utf8_data, in uefi_avb_utf8_to_ucs2() argument
41 if ((utf8_data[i8] & 0xF8) == 0xF0) { in uefi_avb_utf8_to_ucs2()
43 } else if ((utf8_data[i8] & 0xF0) == 0xE0) { in uefi_avb_utf8_to_ucs2()
44 ucs2_data[i2] = (uint16_t)((uint16_t)utf8_data[i8] << 12) | in uefi_avb_utf8_to_ucs2()
45 (uint16_t)(((uint16_t)utf8_data[i8 + 1] << 6) & 0x0FC0) | in uefi_avb_utf8_to_ucs2()
46 (uint16_t)((uint16_t)utf8_data[i8 + 2] & 0x003F); in uefi_avb_utf8_to_ucs2()
48 } else if ((utf8_data[i8] & 0xE0) == 0XC0) { in uefi_avb_utf8_to_ucs2()
49 ucs2_data[i2] = (uint16_t)(((uint16_t)utf8_data[i8] << 6) & 0x07C0) | in uefi_avb_utf8_to_ucs2()
50 (uint16_t)((uint16_t)utf8_data[i8 + 1] & 0x003F); in uefi_avb_utf8_to_ucs2()
52 } else if (!(utf8_data[i8] >> 7)) { in uefi_avb_utf8_to_ucs2()
[all …]
Duefi_avb_util.h35 bool uefi_avb_utf8_to_ucs2(const uint8_t* utf8_data,
/external/libtextclassifier/native/utils/grammar/parsing/
Dlexer.cc58 StringPiece(it.utf8_data(), next.utf8_data() - it.utf8_data())); in AppendTokenSymbols()
/external/libtextclassifier/native/utils/
Dtoken-feature-extractor.cc300 it_chargram_end.utf8_data() - it_chargram_start.utf8_data(); in ExtractCharactergramFeaturesUnicode()
302 StringPiece(it_chargram_start.utf8_data(), length_bytes))); in ExtractCharactergramFeaturesUnicode()
Dtokenizer.cc133 it.utf8_data(), it.utf8_data() + GetNumBytesForUTF8Char(it.utf8_data())); in AppendCodepointToToken()
/external/libtextclassifier/native/utils/utf8/
Dunicodetext.h137 const char* utf8_data() const { return it_; } in utf8_data() function