last stdlib cleanups

This commit is contained in:
Araq 2019-09-20 20:22:37 +02:00 • committed by Andreas Rumpf
commit 5abe880469
31 changed files with 136 additions and 42 deletions

View file

@ -7,6 +7,9 @@
# distribution, for details about the copyright.
#
## Implements a representation of Unicode with the limited
## ASCII character subset.
import strutils
import unicode
@ -23,7 +26,7 @@ const
Delimiter = '-'
type
PunyError* = object of Exception
PunyError* = object of ValueError
proc decodeDigit(x: char): int {.raises: [PunyError].} =
if '0' <= x and x <= '9':