PS2SDK
PS2 Homebrew Libraries
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)
 

Functions

unsigned char look_ctype_table (char character)
 
void * get_ctype_table ()
 
char _toupper (char c)
 
char _tolower (char c)
 

Detailed Description

ctype functions for the IOP

Definition in file ctype.h.

Macro Definition Documentation

◆ _U

#define _U   0x01

Uppercase letter

Definition at line 57 of file ctype.h.

◆ _L

#define _L   0x02

Lowercase letter

Definition at line 59 of file ctype.h.

◆ _N

#define _N   0x04

Digit (0-9)

Definition at line 61 of file ctype.h.

◆ _S

#define _S   0x08

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

Definition at line 63 of file ctype.h.

◆ _P

#define _P   0x10

Punctuation character

Definition at line 65 of file ctype.h.

◆ _C

#define _C   0x20

Control character or delete

Definition at line 67 of file ctype.h.

◆ _X

#define _X   0x40

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

Definition at line 69 of file ctype.h.

◆ _B

#define _B   0x80

Blank (space)

Definition at line 71 of file ctype.h.