PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
ctype.h File Reference
#include "_libstd/ascii.h"
#include "_libstd/config.h"
Include dependency graph for ctype.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define isalnum(c)   ((int)(_asciiTable[(int)(c)].flags & (_ASCII_ALPHA | _ASCII_DIGIT)))
 
#define isalpha(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_ALPHA))
 
#define isblank(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_BLANK))
 
#define iscntrl(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_CNTRL))
 
#define isdigit(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_DIGIT))
 
#define isgraph(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_GRAPH))
 
#define islower(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_LOWER))
 
#define isprint(c)   ((int)!(_asciiTable[(int)(c)].flags & _ASCII_CNTRL))
 
#define ispunct(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_PUNCT))
 
#define isspace(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_SPACE))
 
#define isupper(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_UPPER))
 
#define isxdigit(c)   ((int)(_asciiTable[(int)(c)].flags & _ASCII_XDIGIT))
 
#define tolower(c)   ((int)(_asciiTable[(int)(c)].lower))
 
#define toupper(c)   ((int)(_asciiTable[(int)(c)].upper))
 

Macro Definition Documentation

◆ isalnum

#define isalnum (   c)    ((int)(_asciiTable[(int)(c)].flags & (_ASCII_ALPHA | _ASCII_DIGIT)))

Definition at line 12 of file ctype.h.

◆ isalpha

#define isalpha (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_ALPHA))

Definition at line 14 of file ctype.h.

◆ isblank

#define isblank (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_BLANK))

Definition at line 16 of file ctype.h.

◆ iscntrl

#define iscntrl (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_CNTRL))

Definition at line 18 of file ctype.h.

◆ isdigit

#define isdigit (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_DIGIT))

Definition at line 20 of file ctype.h.

◆ isgraph

#define isgraph (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_GRAPH))

Definition at line 22 of file ctype.h.

◆ islower

#define islower (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_LOWER))

Definition at line 24 of file ctype.h.

◆ isprint

#define isprint (   c)    ((int)!(_asciiTable[(int)(c)].flags & _ASCII_CNTRL))

Definition at line 26 of file ctype.h.

◆ ispunct

#define ispunct (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_PUNCT))

Definition at line 28 of file ctype.h.

◆ isspace

#define isspace (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_SPACE))

Definition at line 30 of file ctype.h.

◆ isupper

#define isupper (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_UPPER))

Definition at line 32 of file ctype.h.

◆ isxdigit

#define isxdigit (   c)    ((int)(_asciiTable[(int)(c)].flags & _ASCII_XDIGIT))

Definition at line 34 of file ctype.h.

◆ tolower

#define tolower (   c)    ((int)(_asciiTable[(int)(c)].lower))

Definition at line 36 of file ctype.h.

◆ toupper

#define toupper (   c)    ((int)(_asciiTable[(int)(c)].upper))

Definition at line 38 of file ctype.h.