Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
ctype.h
Go to the documentation of this file.
1 #ifndef CTYPE_H_
2 #define CTYPE_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #define _CTYPE_A 0x00000100L /* Alpha */
9 #define _CTYPE_C 0x00000200L /* Control */
10 #define _CTYPE_D 0x00000400L /* Digit */
11 #define _CTYPE_G 0x00000800L /* Graph */
12 #define _CTYPE_L 0x00001000L /* Lower */
13 #define _CTYPE_P 0x00002000L /* Punct */
14 #define _CTYPE_S 0x00004000L /* Space */
15 #define _CTYPE_U 0x00008000L /* Upper */
16 #define _CTYPE_X 0x00010000L /* X digit */
17 #define _CTYPE_B 0x00020000L /* Blank */
18 #define _CTYPE_R 0x00040000L /* Print */
19 #define _CTYPE_I 0x00080000L /* Ideogram */
20 #define _CTYPE_T 0x00100000L /* Special */
21 #define _CTYPE_Q 0x00200000L /* Phonogram */
22 #define _CTYPE_SW0 0x20000000L /* 0 width character */
23 #define _CTYPE_SW1 0x40000000L /* 1 width character */
24 #define _CTYPE_SW2 0x80000000L /* 2 width character */
25 #define _CTYPE_SW3 0xc0000000L /* 3 width character */
26 #define _CTYPE_SWM 0xe0000000L /* Mask for screen width data */
27 #define _CTYPE_SWS 30 /* Bits to shift to get width */
28 
44 int isalnum(int ch);
45 
58 int isalpha(int ch);
59 
72 int isascii(int ch);
73 
88 int isblank(int ch);
89 
103 int iscntrl(int ch);
104 
116 int isdigit(int ch);
117 
134 int isgraph(int ch);
135 
150 int islower(int ch);
151 
169 int isprint(int ch);
170 
184 int ispunct(int ch);
185 
204 int isspace(int ch);
205 
220 int isupper(int ch);
221 
233 int isxdigit(int ch);
234 
250 int tolower(int ch);
251 
267 int toupper(int ch);
268 
279 int toascii(int ch);
280 
281 #ifdef __cplusplus
282 }
283 #endif
284 
285 #endif // CTYPE_H_
int tolower(int ch)
Converts the given character to lowercase.
Definition: tolower.c:5
int isupper(int ch)
Checks if the given character is an uppercase character.
Definition: isupper.c:5
int isgraph(int ch)
Checks if the given character has a graphical representation.
Definition: isgraph.c:5
int isascii(int ch)
Checks if a given character is a 7-bit US-ASCII character.
Definition: isascii.c:5
int isalpha(int ch)
Checks if the given character is an alphabetic character.
Definition: isalpha.c:5
int toupper(int ch)
Converts the given character to lowercase.
Definition: toupper.c:5
int ispunct(int ch)
Checks if the given character is a punctuation character.
Definition: ispunct.c:5
int iscntrl(int ch)
Checks if the given character is a control character.
Definition: iscntrl.c:5
int isxdigit(int ch)
Checks if the given character is a hexadecimal numeric character.
Definition: isxdigit.c:5
int isalnum(int ch)
Checks if the given character is an alphanumeric character.
Definition: isalnum.c:5
int isprint(int ch)
Checks if the given character can be printed.
Definition: isprint.c:5
int isspace(int ch)
Checks if the given character is a whitespace character.
Definition: isspace.c:5
int toascii(int ch)
Converts the given character to ASCII.
Definition: toascii.c:5
int islower(int ch)
Checks if the given character is classified as a lowercase character.
Definition: islower.c:5
int isdigit(int ch)
Checks if the given character is a numeric character.
Definition: isdigit.c:5
int isblank(int ch)
Checks if the given character is a blank character.
Definition: isblank.c:5