Macros
lctype.h File Reference
#include "lua.h"
#include <limits.h>
#include "llimits.h"
Include dependency graph for lctype.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

Macro Definition Documentation

◆ ALPHABIT

#define ALPHABIT   0

Definition at line 39 of file lctype.h.

◆ DIGITBIT

#define DIGITBIT   1

Definition at line 40 of file lctype.h.

◆ lisdigit

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

Definition at line 59 of file lctype.h.

◆ lislalnum

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

Definition at line 58 of file lctype.h.

◆ lislalpha

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

Definition at line 57 of file lctype.h.

◆ lisprint

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

Definition at line 61 of file lctype.h.

◆ lisspace

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

Definition at line 60 of file lctype.h.

◆ lisxdigit

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

Definition at line 62 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 71 of file lctype.h.

◆ LUA_USE_CTYPE

#define LUA_USE_CTYPE   0

Definition at line 23 of file lctype.h.

◆ MASK

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

Definition at line 46 of file lctype.h.

◆ PRINTBIT

#define PRINTBIT   2

Definition at line 41 of file lctype.h.

◆ SPACEBIT

#define SPACEBIT   3

Definition at line 42 of file lctype.h.

◆ testprop

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

Definition at line 52 of file lctype.h.

◆ XDIGITBIT

#define XDIGITBIT   4

Definition at line 43 of file lctype.h.

check_exp
#define check_exp(c, e)
Definition: llimits.h:102


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49