PatchworkOS
19e446b
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
ascii.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
stdint.h
>
4
5
typedef
enum
6
{
7
_ASCII_ALPHA
= (1 << 0),
8
_ASCII_DIGIT
= (1 << 1),
9
_ASCII_XDIGIT
= (1 << 2),
10
_ASCII_BLANK
= (1 << 3),
11
_ASCII_CNTRL
= (1 << 4),
12
_ASCII_GRAPH
= (1 << 5),
13
_ASCII_PUNCT
= (1 << 6),
14
_ASCII_SPACE
= (1 << 7),
15
_ASCII_LOWER
= (1 << 8),
16
_ASCII_UPPER
= (1 << 9),
17
}
_ascii_flags_t
;
18
19
typedef
struct
20
{
21
_ascii_flags_t
flags
;
22
uint8_t
upper
;
23
uint8_t
lower
;
24
uint8_t
digit
;
25
}
_ascii_entry_t
;
26
27
extern
_ascii_entry_t
_asciiTable
[];
_ascii_flags_t
_ascii_flags_t
Definition
ascii.h:6
_ASCII_XDIGIT
@ _ASCII_XDIGIT
Definition
ascii.h:9
_ASCII_SPACE
@ _ASCII_SPACE
Definition
ascii.h:14
_ASCII_GRAPH
@ _ASCII_GRAPH
Definition
ascii.h:12
_ASCII_ALPHA
@ _ASCII_ALPHA
Definition
ascii.h:7
_ASCII_CNTRL
@ _ASCII_CNTRL
Definition
ascii.h:11
_ASCII_DIGIT
@ _ASCII_DIGIT
Definition
ascii.h:8
_ASCII_BLANK
@ _ASCII_BLANK
Definition
ascii.h:10
_ASCII_LOWER
@ _ASCII_LOWER
Definition
ascii.h:15
_ASCII_UPPER
@ _ASCII_UPPER
Definition
ascii.h:16
_ASCII_PUNCT
@ _ASCII_PUNCT
Definition
ascii.h:13
_asciiTable
_ascii_entry_t _asciiTable[]
Definition
ascii_table.c:4
stdint.h
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:11
_ascii_entry_t
Definition
ascii.h:20
_ascii_entry_t::lower
uint8_t lower
Definition
ascii.h:23
_ascii_entry_t::digit
uint8_t digit
Definition
ascii.h:24
_ascii_entry_t::upper
uint8_t upper
Definition
ascii.h:22
_ascii_entry_t::flags
_ascii_flags_t flags
Definition
ascii.h:21
include
_libstd
ascii.h
Generated on Sat Jan 24 2026 10:59:24 for PatchworkOS by
1.9.8