No description
Find a file
2019-11-26 11:30:20 +09:00
doc revised doc 2019-11-26 10:40:43 +09:00
src revised doc 2019-11-26 10:39:33 +09:00
tests init 2019-11-25 20:49:44 +09:00
.gitignore init 2019-11-25 20:49:44 +09:00
asciitype.nimble init 2019-11-25 20:49:44 +09:00
config.nims init 2019-11-25 20:49:44 +09:00
LICENSE Create LICENSE 2019-11-26 11:30:20 +09:00
README.md reviced README 2019-11-26 10:27:34 +09:00

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

Document

link