asciitype
This module performs character tests.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Passing |
| Stars | 1 |
| Forks | 0 |
| Open Issues | 0 |
| Last Commit | 2019-11-26 |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:25 |
Tags
Installation
nimble install asciitype
choosenim install asciitype
git clone https://github.com/chocobo333/asciitype
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| asciitype | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/chocobo333/asciitype |
|---|---|
| Homepage | https://github.com/chocobo333/asciitype |
| Documentation | View Documentation |
| Registry Source | github |
README
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