|
lua5.4
|
宏定义 | |
| #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) |
| #define ALPHABIT 0 |
| #define DIGITBIT 1 |
| #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 |
1.8.18