last stdlib cleanups
This commit is contained in:
parent
9776f926a2
commit
5abe880469
31 changed files with 136 additions and 42 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue