mirror of
https://github.com/chocobo333/asciitype
synced 2026-01-05 12:31:10 +00:00
No description
| doc | ||
| src | ||
| tests | ||
| .gitignore | ||
| asciitype.nimble | ||
| config.nims | ||
| LICENSE | ||
| README.md | ||
asciitype
That module has functions that test whether a character is of a certain type.
Contents
Installation
nimble install asciitype
Usage
import asciitype
var
a = 'f'
b = "FOO1"
c = "fhioeFKOhu47893joi983FFd"
doAssert a.isPrint == true
doAssert b.isUpper == false
doAssert b.isUpper(true) == true
doAssert c.isAnyType({upper, lower, num}) == true
doAssert ' '.isAnyType({space}) == true