PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ctype.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define isascii(c)   ((unsigned int)(c) <= 127)
 
#define toascii(c)   ((unsigned char)(c) & 127)
 
#define isblank(c)   ((c == ' ') || (c == '\t'))
 
#define _U   0x01
 
#define _L   0x02
 
#define _N   0x04
 
#define _S   0x08
 
#define _P   0x10
 
#define _C   0x20
 
#define _X   0x40
 
#define _B   0x80
 
#define isalpha(c)   (look_ctype_table((unsigned int)(c)) & (_U|_L))
 
#define isupper(c)   (look_ctype_table((unsigned int)(c)) & (_U))
 
#define islower(c)   (look_ctype_table((unsigned int)(c)) & (_L))
 
#define isdigit(c)   (look_ctype_table((unsigned int)(c)) & (_N))
 
#define isxdigit(c)   (look_ctype_table((unsigned int)(c)) & (_X|_N))
 
#define isspace(c)   (look_ctype_table((unsigned int)(c)) & (_S))
 
#define ispunct(c)   (look_ctype_table((unsigned int)(c)) & (_P))
 
#define isalnum(c)   (look_ctype_table((unsigned int)(c)) & (_U|_L|_N))
 
#define isprint(c)   (look_ctype_table((unsigned int)(c)) & (_P|_U|_L|_N|_B))
 
#define isgraph(c)   (look_ctype_table((unsigned int)(c)) & (_P|_U|_L|_N))
 
#define iscntrl(c)   (look_ctype_table((unsigned int)(c)) & (_C))
 
#define toupper(c)   _toupper(c)
 
#define tolower(c)   _tolower(c)
 

Detailed Description

ctype functions for the IOP

Definition in file ctype.h.

Macro Definition Documentation

◆ isascii

#define isascii (   c)    ((unsigned int)(c) <= 127)

Definition at line 23 of file ctype.h.

◆ toascii

#define toascii (   c)    ((unsigned char)(c) & 127)

Definition at line 24 of file ctype.h.

◆ isblank

#define isblank (   c)    ((c == ' ') || (c == '\t'))

Definition at line 26 of file ctype.h.

◆ _U

#define _U   0x01

Uppercase letter

Definition at line 50 of file ctype.h.

◆ _L

#define _L   0x02

Lowercase letter

Definition at line 52 of file ctype.h.

◆ _N

#define _N   0x04

Digit (0-9)

Definition at line 54 of file ctype.h.

◆ _S

#define _S   0x08

Space, tab, newline, vertical tab, formfeed or carriage return

Definition at line 56 of file ctype.h.

◆ _P

#define _P   0x10

Punctuation character

Definition at line 58 of file ctype.h.

◆ _C

#define _C   0x20

Control character or delete

Definition at line 60 of file ctype.h.

◆ _X

#define _X   0x40

Hexadecimal digit (0-9, a-f, A-F)

Definition at line 62 of file ctype.h.

◆ _B

#define _B   0x80

Blank (space)

Definition at line 64 of file ctype.h.

◆ isalpha

#define isalpha (   c)    (look_ctype_table((unsigned int)(c)) & (_U|_L))

Definition at line 66 of file ctype.h.

◆ isupper

#define isupper (   c)    (look_ctype_table((unsigned int)(c)) & (_U))

Definition at line 67 of file ctype.h.

◆ islower

#define islower (   c)    (look_ctype_table((unsigned int)(c)) & (_L))

Definition at line 68 of file ctype.h.

◆ isdigit

#define isdigit (   c)    (look_ctype_table((unsigned int)(c)) & (_N))

Definition at line 69 of file ctype.h.

◆ isxdigit

#define isxdigit (   c)    (look_ctype_table((unsigned int)(c)) & (_X|_N))

Definition at line 70 of file ctype.h.

◆ isspace

#define isspace (   c)    (look_ctype_table((unsigned int)(c)) & (_S))

Definition at line 71 of file ctype.h.

◆ ispunct

#define ispunct (   c)    (look_ctype_table((unsigned int)(c)) & (_P))

Definition at line 72 of file ctype.h.

◆ isalnum

#define isalnum (   c)    (look_ctype_table((unsigned int)(c)) & (_U|_L|_N))

Definition at line 73 of file ctype.h.

◆ isprint

#define isprint (   c)    (look_ctype_table((unsigned int)(c)) & (_P|_U|_L|_N|_B))

Definition at line 74 of file ctype.h.

◆ isgraph

#define isgraph (   c)    (look_ctype_table((unsigned int)(c)) & (_P|_U|_L|_N))

Definition at line 75 of file ctype.h.

◆ iscntrl

#define iscntrl (   c)    (look_ctype_table((unsigned int)(c)) & (_C))

Definition at line 76 of file ctype.h.

◆ toupper

#define toupper (   c)    _toupper(c)

Definition at line 82 of file ctype.h.

◆ tolower

#define tolower (   c)    _tolower(c)

Definition at line 89 of file ctype.h.