last stdlib cleanups
This commit is contained in:
parent
9776f926a2
commit
5abe880469
31 changed files with 136 additions and 42 deletions
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
## This module implements a base64 encoder and decoder.
|
||||
##
|
||||
## Unstable API.
|
||||
##
|
||||
## Base64 is an encoding and decoding technique used to convert binary
|
||||
## data to an ASCII string format.
|
||||
## Each Base64 digit represents exactly 6 bits of data. Three 8-bit
|
||||
|
|
@ -110,7 +112,7 @@ template encodeInternal(s: typed, lineLen: int, newLine: string): untyped =
|
|||
#assert(r == result.len)
|
||||
discard
|
||||
|
||||
proc encode*[T:SomeInteger|char](s: openArray[T], lineLen = 75, newLine=""): string =
|
||||
proc encode*[T: SomeInteger|char](s: openArray[T], lineLen = 75, newLine=""): string =
|
||||
## Encodes ``s`` into base64 representation. After ``lineLen`` characters, a
|
||||
## ``newline`` is added.
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue