LF OS
Hobby operating system for amd64 with high ambitions
|
Go to the source code of this file.
Data Structures | |
struct | UTF8DecoderData |
struct | StaticTableEncoding |
Macros | |
#define | UNICODE_INVALID 0xFFFD |
Functions | |
static void | init_utf8 (VTermEncoding *enc, void *data_) |
static void | decode_utf8 (VTermEncoding *enc, void *data_, uint32_t cp[], int *cpi, int cplen, const char bytes[], size_t *pos, size_t bytelen) |
static void | decode_usascii (VTermEncoding *enc, void *data, uint32_t cp[], int *cpi, int cplen, const char bytes[], size_t *pos, size_t bytelen) |
static void | decode_table (VTermEncoding *enc, void *data, uint32_t cp[], int *cpi, int cplen, const char bytes[], size_t *pos, size_t bytelen) |
VTermEncoding * | vterm_lookup_encoding (VTermEncodingType type, char designation) |
Variables | ||
static VTermEncoding | encoding_utf8 | |
static VTermEncoding | encoding_usascii | |
struct { | ||
VTermEncodingType | type | |
char | designation | |
VTermEncoding * | enc | |
} | encodings [] | |
struct UTF8DecoderData |
Definition at line 9 of file encoding.c.
Data Fields | ||
---|---|---|
int | bytes_remaining | |
int | bytes_total | |
int | this_cp |
struct StaticTableEncoding |
Definition at line 182 of file encoding.c.
Data Fields | ||
---|---|---|
const uint32_t | chars[128] | |
const VTermEncoding | enc |
#define UNICODE_INVALID 0xFFFD |
Definition at line 3 of file encoding.c.
|
static |
Definition at line 187 of file encoding.c.
References StaticTableEncoding::chars, and StaticTableEncoding::enc.
|
static |
Definition at line 162 of file encoding.c.
|
static |
Definition at line 28 of file encoding.c.
References UTF8DecoderData::bytes_remaining, UTF8DecoderData::bytes_total, UTF8DecoderData::this_cp, and UNICODE_INVALID.
|
static |
Definition at line 20 of file encoding.c.
References UTF8DecoderData::bytes_remaining, and UTF8DecoderData::bytes_total.
VTermEncoding * vterm_lookup_encoding | ( | VTermEncodingType | type, |
char | designation | ||
) |
Definition at line 224 of file encoding.c.
References encodings, and type.
|
static |
Definition at line 178 of file encoding.c.
|
static |
Definition at line 157 of file encoding.c.
struct { ... } encodings[] |