PatchworkOS
Loading...
Searching...
No Matches
ascii_table.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
unsigned
char
upper
;
23
unsigned
char
lower
;
24
}
_ascii_entry_t
;
25
26
extern
_ascii_entry_t
_ascii_table
[];
_ascii_flags_t
_ascii_flags_t
Definition
ascii_table.h:6
_ASCII_XDIGIT
@ _ASCII_XDIGIT
Definition
ascii_table.h:9
_ASCII_SPACE
@ _ASCII_SPACE
Definition
ascii_table.h:14
_ASCII_GRAPH
@ _ASCII_GRAPH
Definition
ascii_table.h:12
_ASCII_ALPHA
@ _ASCII_ALPHA
Definition
ascii_table.h:7
_ASCII_CNTRL
@ _ASCII_CNTRL
Definition
ascii_table.h:11
_ASCII_DIGIT
@ _ASCII_DIGIT
Definition
ascii_table.h:8
_ASCII_BLANK
@ _ASCII_BLANK
Definition
ascii_table.h:10
_ASCII_LOWER
@ _ASCII_LOWER
Definition
ascii_table.h:15
_ASCII_UPPER
@ _ASCII_UPPER
Definition
ascii_table.h:16
_ASCII_PUNCT
@ _ASCII_PUNCT
Definition
ascii_table.h:13
_ascii_table
_ascii_entry_t _ascii_table[]
Definition
ascii_table.c:5
stdint.h
_ascii_entry_t
Definition
ascii_table.h:20
_ascii_entry_t::lower
unsigned char lower
Definition
ascii_table.h:23
_ascii_entry_t::upper
unsigned char upper
Definition
ascii_table.h:22
_ascii_entry_t::flags
_ascii_flags_t flags
Definition
ascii_table.h:21
src
libstd
common
ascii_table.h
Generated by
1.9.8