Github User Fetcher 1.0.0
C Application with Server and GUI
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)   (1 << (B))
 
#define testprop(c, p)   (luai_ctype_[(c)+1] & (p))
 
#define lislalpha(c)   testprop(c, MASK(ALPHABIT))
 
#define lislalnum(c)   testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT)))
 
#define lisdigit(c)   testprop(c, MASK(DIGITBIT))
 
#define lisspace(c)   testprop(c, MASK(SPACEBIT))
 
#define lisprint(c)   testprop(c, MASK(PRINTBIT))
 
#define lisxdigit(c)   testprop(c, MASK(XDIGITBIT))
 
#define ltolower(c)
 

Macro Definition Documentation

◆ ALPHABIT

#define ALPHABIT   0

Definition at line 39 of file lua-5.4.3/src/lctype.h.

◆ DIGITBIT

#define DIGITBIT   1

Definition at line 40 of file lua-5.4.3/src/lctype.h.

◆ lisdigit

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

Definition at line 59 of file lua-5.4.3/src/lctype.h.

◆ lislalnum

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

Definition at line 58 of file lua-5.4.3/src/lctype.h.

◆ lislalpha

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

Definition at line 57 of file lua-5.4.3/src/lctype.h.

◆ lisprint

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

Definition at line 61 of file lua-5.4.3/src/lctype.h.

◆ lisspace

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

Definition at line 60 of file lua-5.4.3/src/lctype.h.

◆ lisxdigit

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

Definition at line 62 of file lua-5.4.3/src/lctype.h.

◆ ltolower

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

Definition at line 71 of file lua-5.4.3/src/lctype.h.

71#define ltolower(c) \
72 check_exp(('A' <= (c) && (c) <= 'Z') || (c) == ((c) | ('A' ^ 'a')), \
73 (c) | ('A' ^ 'a'))

◆ LUA_USE_CTYPE

#define LUA_USE_CTYPE   0

Definition at line 23 of file lua-5.4.3/src/lctype.h.

◆ MASK

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

Definition at line 46 of file lua-5.4.3/src/lctype.h.

◆ PRINTBIT

#define PRINTBIT   2

Definition at line 41 of file lua-5.4.3/src/lctype.h.

◆ SPACEBIT

#define SPACEBIT   3

Definition at line 42 of file lua-5.4.3/src/lctype.h.

◆ testprop

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

Definition at line 52 of file lua-5.4.3/src/lctype.h.

◆ XDIGITBIT

#define XDIGITBIT   4

Definition at line 43 of file lua-5.4.3/src/lctype.h.