Define $ operator for TRune

This commit is contained in:
Satish BD
2013-12-26 00:55:17 +02:00
parent 69b816f07c
commit 40bd63f83b

View File

@@ -132,7 +132,9 @@ proc toUTF8*(c: TRune): string {.rtl, extern: "nuc$1".} =
result = newString(1)
result[0] = chr(i)
proc `$`*(rune: TRune): string = rune.toUTF8
proc `$`*(rune: TRune): string =
## converts a rune to a string
rune.toUTF8
proc `$`*(runes: seq[TRune]): string =
## converts a sequence of runes to a string