sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
lctype.h File Reference
#include "lua.h"
#include <limits.h>
#include "llimits.h"

Go to the source code of this file.

Macros

#define LUA_USE_CTYPE   0
#define ALPHABIT   0
#define DIGITBIT   1
#define PRINTBIT   2
#define SPACEBIT   3
#define XDIGITBIT   4
#define MASK(B)
#define testprop(c, p)
#define lislalpha(c)
#define lislalnum(c)
#define lisdigit(c)
#define lisspace(c)
#define lisprint(c)
#define lisxdigit(c)
#define ltolower(c)

Macro Definition Documentation

◆ ALPHABIT

#define ALPHABIT   0

Definition at line 43 of file lctype.h.

◆ DIGITBIT

#define DIGITBIT   1

Definition at line 44 of file lctype.h.

◆ lisdigit

#define lisdigit ( c)
Value:
testprop(c, MASK(DIGITBIT))

Definition at line 63 of file lctype.h.

◆ lislalnum

#define lislalnum ( c)
Value:
testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT)))

Definition at line 62 of file lctype.h.

◆ lislalpha

#define lislalpha ( c)
Value:
testprop(c, MASK(ALPHABIT))

Definition at line 61 of file lctype.h.

◆ lisprint

#define lisprint ( c)
Value:
testprop(c, MASK(PRINTBIT))

Definition at line 65 of file lctype.h.

◆ lisspace

#define lisspace ( c)
Value:
testprop(c, MASK(SPACEBIT))

Definition at line 64 of file lctype.h.

◆ lisxdigit

#define lisxdigit ( c)
Value:
testprop(c, MASK(XDIGITBIT))

Definition at line 66 of file lctype.h.

◆ ltolower

#define ltolower ( c)
Value:
check_exp(('A' <= (c) && (c) <= 'Z') || (c) == ((c) | ('A' ^ 'a')), \
(c) | ('A' ^ 'a'))

Definition at line 75 of file lctype.h.

◆ LUA_USE_CTYPE

#define LUA_USE_CTYPE   0

Definition at line 27 of file lctype.h.

◆ MASK

#define MASK ( B)
Value:
(1 << (B))

Definition at line 50 of file lctype.h.

◆ PRINTBIT

#define PRINTBIT   2

Definition at line 45 of file lctype.h.

◆ SPACEBIT

#define SPACEBIT   3

Definition at line 46 of file lctype.h.

◆ testprop

#define testprop ( c,
p )
Value:
(luai_ctype_[(c)+1] & (p))

Definition at line 56 of file lctype.h.

◆ XDIGITBIT

#define XDIGITBIT   4

Definition at line 47 of file lctype.h.