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/smartselect/
Dtokenizer.cc84 it.utf8_data(), in Tokenize()
85 it.utf8_data() + GetNumBytesForNonZeroUTF8Char(it.utf8_data())); in Tokenize()
Dtoken-feature-extractor.cc215 it_chargram_end.utf8_data() - it_chargram_start.utf8_data(); in ExtractCharactergramFeaturesUnicode()
217 StringPiece(it_chargram_start.utf8_data(), length_bytes))); in ExtractCharactergramFeaturesUnicode()
/external/libtextclassifier/util/utf8/
Dunicodetext.h129 const char* utf8_data() const { return it_; } in utf8_data() function
/external/v8/src/
Dobjects.cc11537 const uint8_t* utf8_data = reinterpret_cast<const uint8_t*>(str.start()); in IsUtf8EqualTo() local
11540 uint32_t r = unibrow::Utf8::ValueOf(utf8_data, remaining_in_str, &cursor); in IsUtf8EqualTo()
11549 utf8_data += cursor; in IsUtf8EqualTo()