updated base64.nim

This commit is contained in:
Araq 2014-08-28 01:19:17 +02:00
commit d69e8f4de4

View file

@ -60,7 +60,7 @@ template encodeInternal(s: expr, lineLen: int, newLine: string): stmt {.immediat
else: else:
#assert(r == result.len) #assert(r == result.len)
proc encode*[T:TInteger|char](s: openarray[T], lineLen = 75, newLine="\13\10"): string = proc encode*[T:SomeInteger|char](s: openarray[T], lineLen = 75, newLine="\13\10"): string =
## encodes `s` into base64 representation. After `lineLen` characters, a ## encodes `s` into base64 representation. After `lineLen` characters, a
## `newline` is added. ## `newline` is added.
encodeInternal(s, lineLen, newLine) encodeInternal(s, lineLen, newLine)