about summary refs log blame commit diff stats
path: root/src/utils/charcategory.nim
blob: e2c2a045a3381e7b328db7d4c3c812a0e66dbc56 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                       
                                 

                                                          
const C0Controls* = {chr(0x00)..chr(0x1F)}
const Controls* = (C0Controls + {chr(0x7F)})
const Ascii* = {chr(0x00)..chr(0x7F)}
const AsciiUpperAlpha* = {'A'..'Z'}
const AsciiLowerAlpha* = {'a'..'z'}
const AsciiAlpha* = (AsciiUpperAlpha + AsciiLowerAlpha)
const NonAscii* = {char(0x80)..char(0xFF)}
const AsciiDigit* = {'0'..'9'}
const AsciiAlphaNumeric* = AsciiAlpha + AsciiDigit
const AsciiOctDigit* = {'0'..'7'}
const AsciiHexDigit* = (AsciiDigit + {'a'..'f', 'A'..'F'})
const AsciiWhitespace* = {' ', '\n', '\r', '\t', '\f'}