summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* follow #15860 clean cgi module (#16487)flywind2020-12-271-50/+47
| | | | | * follow #15860 clean cgi module * follow #15860 clean cgi module
* Save some alloc on base64 using encodeSize (#16465)Juan Carlos2020-12-271-0/+1
|
* follow #15357 and move decodeQuery (#15860)flywind2020-12-272-34/+59
| | | | | | | | | * follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
* fix #16474 `unittest.check type1 is type2` gives CT error (#16476)flywind2020-12-271-1/+2
| | | | * fix #16474 * more tests
* Add missing HTTP codes (#16454)Juan Carlos2020-12-231-3/+54
|
* add `euclDiv` and `euclMod` to `math` (#16414)flywind2020-12-231-0/+26
| | | | | | | | * add `euclDiv` and `euclMod` to `math` * use abs * Update lib/pure/math.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* strip minor improvement (#16444)flywind2020-12-231-1/+1
| | | | | | | * strip minor improvement * add more tests * Update tests/stdlib/tstrutils.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* [backport => 1.0] fix #16428 vmops now works for generic procs (#16429)Timothee Cour2020-12-221-0/+2
| | | | | * fix #16428 vmops now works for generic procs * remove duplication
* styleCheck: Fix some inconsistent identifiers (#16177)ee72020-12-2112-39/+39
|
* docs minor for math (#16407)flywind2020-12-201-2/+2
|
* O(1) concatenation of singly- and doubly linked lists. (#16362)Peter Salvi2020-12-201-1/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * O(1) concatenation of singly- and doubly linked lists. There is also new `toSinglyLinkedList` and `toDoublyLinkedList` functions for conversion from `openArray`s, similarly to `toHashSet` or `toTable`. * Add `sequtils` import to runnable examples with `toSeq`. * Added missing call to runnable examples. * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * Improved tests for lists. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * More compact tests for lists with templates. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Added extended example to `lists.copy`. * Corrected .since annotations to 1.6 * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Since declarations changed to (1,5,1). * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Changelog update. * Fix rebasing errors. * Self-adding with `lists.addMove` results in a cycle now. Added some extra tests.
* Fix osproc so that it doesn't close pipe/process/thread handles twice ↵Tomohiro2020-12-181-18/+40
| | | | | | | (#16385) [backport] * Add error check to closeHandle and fix closing handle twice in osproc * Fix compile error on Linux
* use hexchar in stdlib (#16290)flywind2020-12-174-61/+20
|
* make the docs of strutils a bit better (#16368)flywind2020-12-171-153/+150
|
* fixes #16359 [backport] (#16377)Andreas Rumpf2020-12-171-1/+1
|
* sequtils.nim: Change some `func` back to `proc` (#16309)ee72020-12-141-28/+28
| | | | | | | | | | | This commit changes the funcs that take a `proc` parameter back to procs. This reverts some of commit 6f57ebae349f: sequtils.nim: Use `func` (#16293) See also: - https://github.com/nim-lang/Nim/issues/16303 - https://github.com/nim-lang/Nim/pull/16304
* Fix broken links in docs (#16336)Elliot Waite2020-12-1411-61/+67
| | | | | * Fix broken links in docs * Fix rand HSlice links
* clean the docs of sequtils (#16332)flywind2020-12-141-97/+89
|
* Added strscans.scanTuple (#16300)Jason Beetham2020-12-121-1/+50
| | | | * Added since and changelog
* improve tests for collections (#16328)Timothee Cour2020-12-121-63/+45
| | | | | | | * improve tests for collections * remove remaining code blocks in deques.nim * improve runnableExamples
* add math.isNaN (#16179)Timothee Cour2020-12-111-0/+21
| | | | | | | * add math.isNaN * isNaN now works with --passc:-ffast-math; tests * Update lib/pure/math.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* unittest: use defines instead of env vars (#16165)Timothee Cour2020-12-101-35/+55
| | | | | | | | | * unittest: use defines instead of env vars * use defines in testament * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* rationals.nim: Use `func` everywhere (#16302)ee72020-12-091-41/+41
|
* sequtils.nim: Use `func` (#16293)ee72020-12-092-47/+47
| | | | | | | | | * sequtils.nim: proc -> func * sequtils.nim: proc -> func in links * sequtils.nim: proc -> func in non-link doc comments * test: add `sequtils` to strictFuncs test
* complex.nim: Use `func` everywhere (#16294)ee72020-12-091-60/+60
|
* Revert "use generics in random (#16283)" (#16291)flywind2020-12-091-15/+33
| | | This reverts commit 71e2a9e569ab3380fd057e4fc16e6d4ccd66f1f4.
* math.nim: Use `func` everywhere (#16285)ee72020-12-071-270/+268
| | | | | | | | | | | * math.nim: procs with {.noSideEffect} -> funcs * math.nim: procs without {.noSideEffect.} -> funcs * math.nim: proc -> func in links * math.nim: proc -> func in doc comments * test: add `math` to strictFuncs test
* strutils.nim: Use `func` everywhere (#16281)ee72020-12-071-325/+294
| | | | | | | | | | | | | * strutils.nim: procs with {.noSideEffect.} -> func * strutils.nim: procs without {.noSideEffect.} -> func * strutils.nim: proc -> func for links * strutils.nim: proc -> func in doc comments * test: add strutils to strictFuncs test * test: proc -> func in errmsg test
* use generics in random (#16283)flywind2020-12-071-33/+15
| | | | | * use generics in random * fix
* use funcs and fix links in strutils (#16277)flywind2020-12-071-14/+8
| | | | | * use funcs and inline in strutils * use funcs
* fix parseChar see #16240 (#16245)Pietro Peterlongo2020-12-061-3/+14
| | | | | * fix parseChar * do not introduce new double backticks
* [docs minor]space for code-block (#16266)flywind2020-12-061-9/+3
| | | | | | | | | * [docs minor]space for code-block * correct more errors * to runnableExamples * add newline
* fix #16206 (#16207)flywind2020-12-061-1/+69
| | | | * better docs and tests * a bit better only clean trailing whitespace
* [docs minor] remove unicode in docs comments (#16267)flywind2020-12-061-1/+1
|
* add collect with infered init, refs #16078 fixes #14332 (#16089)Antonis Geralis2020-12-031-34/+66
| | | | * changelog * add testcase, fixes #14332
* add support for parsing chars in `scanf` macro (#16240)Miran2020-12-032-0/+11
|
* minor fix to Posix part of walkDir (#16234)Andrey Makarov2020-12-031-13/+19
| | | | | | | | | * change break->continue and rewrite one-yield-style * use case statement for clarity * Tiny nit Co-authored-by: Clyybber <darkmine956@gmail.com>
* move decode_helpers to std/private (#16209)flywind2020-12-023-26/+2
|
* fixed article duplication typos (#16216)ihlec2020-12-023-3/+3
|
* minor typo (#16225)flywind2020-12-021-1/+1
|
* Don't add content-length header on GET request when there is no body. (#16196)treeform2020-12-011-1/+1
| | | | | | | * Don't add content-length header on GET request when there is no body. * Add space between the not and the (. * Take Dom's suggestion.
* minor improve the docs of parsecfg (#16208)flywind2020-12-011-25/+27
|
* fix broken => for typed procs with pragmas (#16190)hlaaftana2020-12-011-9/+6
| | | | | | | * fix broken => for typed procs with pragmas * add more sugar tests * add ending quote
* toXXAscii use xor op, saving 30%~50% time (#16193)Bung2020-11-301-2/+2
| | | | | | | | | | | | * toXXAscii use xor op, saving 30%~50% time * Update lib/pure/strutils.nim Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com> * Update lib/pure/strutils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
* small runnableExamples changes (#16181)flywind2020-11-301-30/+28
|
* move rest of tests to testament (#16140)flywind2020-11-271-97/+0
| | | | * move rest of tests to testament * Update tests/stdlib/tsums.nim
* fixes #16154; underlying system.add for seq is the real cause; will be ↵Andreas Rumpf2020-11-271-2/+3
| | | | addressed in a follow-up PR (#16161)
* fixes #15076 (#16143)Andreas Rumpf2020-11-261-5/+5
| | | | | | | | | * fixes #15076 * heapqueue: optimized for ARC * added another test case [backport:1.4] * code cleanup
* fix for comparing infinities (#16122)Antonis Geralis2020-11-251-0/+11
|
* improve the documentation of ropes (#16111)flywind2020-11-251-19/+98
|