Fix ascii compatibility
Submitted by: Liu Kang <liukang@bjpu.edu.cn>
This commit is contained in:
parent
baee0c3e66
commit
deb2a95690
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119246
@ -37,22 +37,21 @@ ENCODING "GB18030"
|
|||||||
/*
|
/*
|
||||||
* ASCII compatible
|
* ASCII compatible
|
||||||
*/
|
*/
|
||||||
ALPHA 0x41 - 0x5a 0x61 - 0x7a
|
ALPHA 'A' - 'Z' 'a' - 'z'
|
||||||
BLANK 0x9 0xb 0x20
|
BLANK ' ' '\t' '\v'
|
||||||
CONTROL 0x0 - 0x1f 0x7f
|
CONTROL 0x00 - 0x1f 0x7f
|
||||||
DIGIT 0x30 - 0x39
|
DIGIT '0' - '9'
|
||||||
LOWER 0x61 - 0x7a
|
GRAPH 0x21 - 0x7e
|
||||||
MAPLOWER < 0x61 - 0x7a : 0x41 >
|
LOWER 'a' - 'z'
|
||||||
MAPUPPER < 0x41 - 0x5a : 0x61 >
|
MAPLOWER < 'A' - 'Z' : 'a' > < 'a' - 'z' : 'a' >
|
||||||
PRINT 0x20
|
MAPUPPER < 'A' - 'Z' : 'A' > < 'a' - 'z' : 'A' >
|
||||||
|
PRINT 0x20 - 0x7e
|
||||||
PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e
|
PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e
|
||||||
SPACE 0x9 - 0xd 0x20
|
SPACE 0x09 - 0x0d 0x20
|
||||||
TODIGIT < 0x30 - 0x39 : 0x0000 >
|
TODIGIT < '0' - '9' : 0 >
|
||||||
TODIGIT < 0x41 - 0x46 : 10 >
|
TODIGIT < 'A' - 'F' : 10 > < 'a' - 'f' : 10 >
|
||||||
TODIGIT < 0x61 - 0x66 : 10 >
|
UPPER 'A' - 'Z'
|
||||||
UPPER 0x41 - 0x5a
|
XDIGIT '0' - '9' 'a' - 'f' 'A' - 'F'
|
||||||
XDIGIT 0x30 - 0x39 0x41 - 0x46 0x61 - 0x66
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GBK compatible
|
* GBK compatible
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user