iPXE
|
UTF-8 Unicode encoding. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
unsigned int | utf8_accumulate (struct utf8_accumulator *utf8, uint8_t byte) |
Accumulate Unicode character from UTF-8 byte sequence. More... | |
UTF-8 Unicode encoding.
Definition in file utf8.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
unsigned int utf8_accumulate | ( | struct utf8_accumulator * | utf8, |
uint8_t | byte | ||
) |
Accumulate Unicode character from UTF-8 byte sequence.
utf8 | UTF-8 accumulator |
byte | UTF-8 byte |
character | Unicode character, or 0 if incomplete |
Definition at line 43 of file utf8.c.
References assert(), utf8_accumulator::character, DBGC, DBGC2, len, min, utf8_accumulator::min, utf8_accumulator::remaining, tmp, UTF8_CONTINUATION_BITS, UTF8_CONTINUATION_MASK, UTF8_HIGH_BIT, UTF8_INVALID, UTF8_IS_ASCII, UTF8_IS_CONTINUATION, UTF8_MAX_LEN, UTF8_MIN_FOUR, UTF8_MIN_THREE, and UTF8_MIN_TWO.
Referenced by efi_putchar(), fbcon_putchar(), and utf8_accumulate_okx().