Lines Matching refs:utf8_data
27 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()
53 ucs2_data[i2] = (uint16_t)((uint16_t)utf8_data[i8] & 0x00FF); in uefi_avb_utf8_to_ucs2()