TianoCore EDK2 master
|
#include "Terminal.h"
Go to the source code of this file.
Functions | |
VOID | VTUTF8RawDataToUnicode (IN TERMINAL_DEV *TerminalDevice) |
VOID | GetOneValidUtf8Char (IN TERMINAL_DEV *Utf8Device, OUT UTF8_CHAR *Utf8Char, OUT UINT8 *ValidBytes) |
VOID | Utf8ToUnicode (IN UTF8_CHAR Utf8Char, IN UINT8 ValidBytes, OUT CHAR16 *UnicodeChar) |
VOID | UnicodeToUtf8 (IN CHAR16 Unicode, OUT UTF8_CHAR *Utf8Char, OUT UINT8 *ValidBytes) |
EFI_STATUS | VTUTF8TestString (IN TERMINAL_DEV *TerminalDevice, IN CHAR16 *WString) |
Implementation of translation upon VT-UTF8.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Vtutf8.c.
VOID GetOneValidUtf8Char | ( | IN TERMINAL_DEV * | Utf8Device, |
OUT UTF8_CHAR * | Utf8Char, | ||
OUT UINT8 * | ValidBytes | ||
) |
Translate one Unicode character into VT-UTF8 characters.
UTF8 Encoding Table Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding 0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx 8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx 12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
Unicode | Unicode character need translating. |
Utf8Char | Return VT-UTF8 character set. |
ValidBytes | The count of valid VT-UTF8 characters. If ValidBytes is zero, no valid VT-UTF8 returned. |
Translate VT-UTF8 characters into one Unicode character.
UTF8 Encoding Table Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding 0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx 8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx 12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
Utf8Char | VT-UTF8 character set needs translating. |
ValidBytes | The count of valid VT-UTF8 characters. |
UnicodeChar | Returned unicode character. |
VOID VTUTF8RawDataToUnicode | ( | IN TERMINAL_DEV * | TerminalDevice | ) |
EFI_STATUS VTUTF8TestString | ( | IN TERMINAL_DEV * | TerminalDevice, |
IN CHAR16 * | WString | ||
) |