No description
Find a file
2024-11-21 18:06:51 -03:00
.github/workflows Add workflows CI 2023-10-15 19:23:25 -03:00
docs update docs 2023-10-16 20:50:04 -03:00
src fix width 2024-11-21 18:05:07 -03:00
tests fix width 2024-11-21 18:05:07 -03:00
.gitignore remove tests bin 2018-06-20 19:54:56 -03:00
CHANGELOG.md bump 2024-11-21 18:06:51 -03:00
LICENSE initial 2018-01-12 12:48:37 -03:00
README.md fix width 2024-11-21 18:05:07 -03:00
unicodeplus.nimble bump 2024-11-21 18:06:51 -03:00

UnicodePlus

Build Status licence

Common unicode operations.

Install

nimble install unicodeplus

Compatibility

Nim +1.0

Usage

import unicodeplus

assert "abc def ghi".isLower
assert "ABC DEF GHI".isUpper
assert "A Title - Yes!".isTitle
assert "  \L".isWhiteSpace
assert "abc123۲⅕".isAlnum
assert "abcd".isAlpha
assert "0123456789".isDecimal
assert "0123456789۲".isDigit
assert "0123456789۲⅕".isNumeric
assert "abcd".isPrintable
assert "The quick? (“brown”) fox cant jump 32.3 feet, right?".toTitle ==
  "The Quick? (“Brown”) Fox Cant Jump 32.3 Feet, Right?"
assert "The quick? (“brown”) fox cant jump 32.3 feet, right?".toUpper ==
  "THE QUICK? (“BROWN”) FOX CANT JUMP 32.3 FEET, RIGHT?"
assert "The quIck? (“bRown”) fox cAnT jUMp 32.3 feet, rIGHt?".toLower ==
  "the quick? (“brown”) fox cant jump 32.3 feet, right?"
assert cmpCaseless("AbCσ", "aBcΣ")
assert toValidUtf8("a\xffb", replacement = "") == "ab"
assert verifyUtf8("a\xffb") == 1
assert width("이건 테스트야") == 13

docs

Tests

nimble test

LICENSE

MIT