updated base64.nim
This commit is contained in:
parent
dcffbb052a
commit
d69e8f4de4
1 changed files with 127 additions and 127 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue