diff options
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r-- | src/utils/twtstr.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 52abade7..47d2c16f 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -138,6 +138,9 @@ func hexValue*(c: char): int = func decValue*(c: char): int = return decCharMap[int(c)] +func isAscii*(c: char): bool = + return int(c) < 128 + func isAscii*(r: Rune): bool = return int(r) < 128 |