use single backtick (#17181)
This commit is contained in:
parent
578d1ee751
commit
fcb5cf643c
10 changed files with 381 additions and 381 deletions
|
|
@ -149,9 +149,9 @@ proc encode*[T: SomeInteger|char](s: openArray[T], safe = false): string =
|
|||
## This procedure encodes an openarray (array or sequence) of either integers
|
||||
## or characters.
|
||||
##
|
||||
## If ``safe`` is ``true`` then it will encode using the
|
||||
## If `safe` is `true` then it will encode using the
|
||||
## URL-Safe and Filesystem-safe standard alphabet characters,
|
||||
## which substitutes ``-`` instead of ``+`` and ``_`` instead of ``/``.
|
||||
## which substitutes `-` instead of `+` and `_` instead of `/`.
|
||||
## * https://en.wikipedia.org/wiki/Base64#URL_applications
|
||||
## * https://tools.ietf.org/html/rfc4648#page-7
|
||||
##
|
||||
|
|
@ -165,13 +165,13 @@ proc encode*[T: SomeInteger|char](s: openArray[T], safe = false): string =
|
|||
encodeImpl()
|
||||
|
||||
proc encode*(s: string, safe = false): string =
|
||||
## Encodes ``s`` into base64 representation.
|
||||
## Encodes `s` into base64 representation.
|
||||
##
|
||||
## This procedure encodes a string.
|
||||
##
|
||||
## If ``safe`` is ``true`` then it will encode using the
|
||||
## If `safe` is `true` then it will encode using the
|
||||
## URL-Safe and Filesystem-safe standard alphabet characters,
|
||||
## which substitutes ``-`` instead of ``+`` and ``_`` instead of ``/``.
|
||||
## which substitutes `-` instead of `+` and `_` instead of `/`.
|
||||
## * https://en.wikipedia.org/wiki/Base64#URL_applications
|
||||
## * https://tools.ietf.org/html/rfc4648#page-7
|
||||
##
|
||||
|
|
@ -183,8 +183,8 @@ proc encode*(s: string, safe = false): string =
|
|||
encodeImpl()
|
||||
|
||||
proc encodeMime*(s: string, lineLen = 75, newLine = "\r\n"): string =
|
||||
## Encodes ``s`` into base64 representation as lines.
|
||||
## Used in email MIME format, use ``lineLen`` and ``newline``.
|
||||
## Encodes `s` into base64 representation as lines.
|
||||
## Used in email MIME format, use `lineLen` and `newline`.
|
||||
##
|
||||
## This procedure encodes a string according to MIME spec.
|
||||
##
|
||||
|
|
@ -215,7 +215,7 @@ const
|
|||
decodeTable = initDecodeTable()
|
||||
|
||||
proc decode*(s: string): string =
|
||||
## Decodes string ``s`` in base64 representation back into its original form.
|
||||
## Decodes string `s` in base64 representation back into its original form.
|
||||
## The initial whitespace is skipped.
|
||||
##
|
||||
## **See also:**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue