summary refs log tree commit diff stats
path: root/lib/pure/base64.nim
Commit message (Collapse)AuthorAgeFilesLines
* Add `safe` parameter to `base64.encodeMime` (#20559)Amjad Ben Hedhili2022-10-211-3/+11
| | | | | | | | | | | | | | | | | | * Improve `encodeMime` signature * `string` to `openArray[char or byte]` * `safe` parameter * Fix * Revert "Fix" This reverts commit a394c505c2ab751621c24fd29b17e97c01251c1f. * Remove encodeMime's openArray overload * Document the `safe` parameter * Add changelog entry
* Remove unused `base64.encode` overload (#20369)Amjad Ben Hedhili2022-10-091-27/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unused `base64.encode` overload * [skip ci] Remove commented code * [skip ci] var -> let * [skip ci] Remove mentions of the string overload * Remove `SomeInteger` overload * Fix CI * Fix CI * Deprecate `SomeInteger` overload * [skip ci] Add changelog entry * Revert "Remove `SomeInteger` overload" This reverts commit 79a2963a2154377ee44e9ad5532409baaf5575a6. * Revert "[skip ci] Add changelog entry" This reverts commit 186f17eb3919a593e2a3928e3ac3b462a8323fc1. * Revert "Revert "Remove `SomeInteger` overload"" This reverts commit 8005318ee4fbf8cef726b1af2015e76aaf1e700a. * Update lib/pure/base64.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Optimize `base64.encodeMime` (#20409)Amjad Ben Hedhili2022-09-251-6/+20
| | | | | | | | | * Optimize `base64.encodeMime` * 5x faster for common scenarios, 13x faster if `lineLen` <= encoded string's length or `newLine` is empty. * Changed `lineLen`'s type to `Positive` to disallow `0`. * Fix
* Documentation: Fix word usage (#19529)Sizhe Zhao2022-02-141-2/+2
|
* fix #17941: UnusedImport works for var/let/const/type invoked inside a ↵Timothee Cour2021-05-081-1/+1
| | | | | | | generic (#17942) * fix #17941: UnusedImport works for var/let/const/type invoked inside a generic * fixup
* [std/base64] uses runnableExamples (#17882)flywind2021-05-011-32/+30
| | | | | | * [std/base64] uses runnableExamples * Update lib/pure/base64.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* further progress on rst roles & directives (fix #17646) (#17659)Andrey Makarov2021-04-081-4/+4
| | | | | | | * further progress on rst roles & dir-s (fix #17646) * fix documents according to the messages * fix bug 17 from #17340
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-281-4/+4
|
* use single backtick (#17181)flywind2021-02-241-8/+8
|
* Save some alloc on base64 using encodeSize (#16465)Juan Carlos2020-12-271-0/+1
|
* base64: fixes the error message for an invalid base64 input character ↵Andreas Rumpf2020-09-201-1/+1
| | | | [backport:1.2]
* Fix style inconsistencies due to the previous commitnarimiran2020-07-061-1/+1
|
* revert 0944b0f4narimiran2020-07-061-1/+1
|
* encodeMIME should be encodeMime by our coding guidelinesAraq2020-04-011-3/+3
|
* fixes #13722 (#13729)Andreas Rumpf2020-03-231-8/+20
| | | | | * fixes #13722 * better fix
* fight the code bloat in base64.nimAraq2020-03-201-7/+16
|
* Add Base64 safe (#13672)Juan Carlos2020-03-201-9/+28
| | | | * Implement RFC-4648 Section-7 * https://github.com/nim-lang/Nim/pull/13672#issuecomment-600993466
* [backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. ↵3n-k12019-11-281-2/+2
| | | | (#12754)
* replace some runtime repr in stdlib for gc:arc (#12716)Andy Davidoff2019-11-251-2/+2
|
* Fix many broken linksJjp1372019-10-221-2/+2
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* About 50% faster base64 implemention. (#12436)treeform2019-10-171-120/+144
|
* [backport] run nimpretty on hashesnarimiran2019-09-301-4/+5
|
* last stdlib cleanupsAraq2019-09-211-1/+3
|
* make more parts of the stdlib compile with --styleCheck:errorAraq2019-07-101-1/+1
|
* fixes #11364 (#11383)Andreas Rumpf2019-06-031-2/+2
|
* Fix header inconsistencies in documentation (#11071)Zed2019-04-231-1/+0
|
* better docs: base64 (#10371)Thomas T. Jarløv2019-01-191-25/+59
|
* make more tests greenAndreas Rumpf2018-04-301-4/+4
|
* Small base64.nim refactor (#5755)Daniil Yarancev2017-04-251-18/+23
| | | | | | | | | | * Small changes (var to let) * Some additional `var` to `let` * Fix * Finally removed immediate
* Fixes #5457 - StdLib base64 encodeInternal crashes with out of bound ↵Florent2017-03-021-3/+9
| | | | exception (#5464)
* Fixed base64 encodeYuriy Glukhov2016-04-111-1/+2
|
* Added examples and more docs to base64 module.Dominik Picheta2015-09-171-0/+37
|
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-21/+21
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Some docgen fixes.Dominik Picheta2014-09-131-0/+1
|
* updated base64.nimAraq2014-08-281-127/+127
|
* big renameAraq2014-08-271-1/+1
|
* Fixes base64 crash.Dominik Picheta2014-07-261-1/+1
|
* Added base64 encode overload for arrays of integers/bytesonionhammer2013-10-301-116/+126
|
* fixes base64 moduleAraq2013-08-151-6/+8
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* non-nil AST; continue after errors for IDE supportAraq2011-02-121-0/+0
|
* base64: decoding worksAraq2010-10-231-20/+6
|
* added base64 module; decoding still brokenAraq2010-10-231-0/+129