]> git.sur5r.net Git - cc65/blob - asminc/ctype.inc
Merge pull request #849 from polluks/patch-4
[cc65] / asminc / ctype.inc
1 ;
2 ; Definitions for the character type tables
3 ;
4 ; Ullrich von Bassewitz, 08.09.2001
5 ;
6
7 ; Make the __ctype table an exported/imported symbol
8
9         .global    __ctype
10
11 ; Define bitmapped constants for the table entries
12
13 CT_NONE         = $00           ; Nothing special
14 CT_LOWER        = $01           ; 0 - Lower case char
15 CT_UPPER        = $02           ; 1 - Upper case char
16 CT_DIGIT        = $04           ; 2 - Numeric digit
17 CT_XDIGIT       = $08           ; 3 - Hex digit (both, lower and upper)
18 CT_CTRL         = $10           ; 4 - Control character
19 CT_SPACE        = $20           ; 5 - The space character itself
20 CT_OTHER_WS     = $40           ; 6 - Other whitespace ('\f', '\n', '\r', '\t' and '\v')
21 CT_SPACE_TAB    = $80           ; 7 - Space or tab character
22
23 ; Combined stuff
24 CT_ALNUM        = (CT_LOWER | CT_UPPER | CT_DIGIT)
25 CT_ALPHA        = (CT_LOWER | CT_UPPER)
26 CT_CTRL_SPACE   = (CT_CTRL | CT_SPACE)
27 CT_NOT_PUNCT    = (CT_SPACE | CT_CTRL | CT_DIGIT | CT_UPPER | CT_LOWER)
28
29