diff options
author | bptato <nincsnevem662@gmail.com> | 2021-12-21 17:11:58 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-12-21 17:11:58 +0100 |
commit | 8a1611e1c6c81b4ee5b7f33f3f539ee1db53045e (patch) | |
tree | 998ca1deeb00092f70de183515b2df847e1dfaa0 /src/utils/twtstr.nim | |
parent | bbb14729f8b0c612f79ba96566d0118fc8c2290d (diff) | |
download | chawan-8a1611e1c6c81b4ee5b7f33f3f539ee1db53045e.tar.gz |
Honestly I'm not sure what I added here...
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 01f3cfb4..e7260f0f 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -45,6 +45,9 @@ func isControlChar*(r: Rune): bool = of Rune(0x7F): return true else: return false +func isC0ControlOrSpace*(c: char): bool = + return c in {chr(0x00)..chr(0x1F), ' '} + func genControlCharMap*(): string = for c in low(char)..high(char): if c == '?': |