summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Make IntSet a generic ordinal set OrdSet[A] (#15564)landerlo2020-11-131-687/+7
| | | | | | | | | | | | | | * Make IntSet an ordinal set OrdSet[A: Ordinal] Backward compatibility with IntSet is maintained. IntSet is an alias for OrdSet[int] * move ordsets to new file, intsets exports it * ordset, move to lib/std folder * Fix `$` for ordsets and test cleanup * Fix ordsets compilation in doc example * Rename ordsets to packedsets
* Alternate to https://github.com/nim-lang/Nim/pull/15915 (#15937)c-blake2020-11-131-2/+7
| | | | | | | | * Alternate PR to https://github.com/nim-lang/Nim/pull/15915 to resolve the problem mentioned there (`hash() == 0`) as well as to close https://github.com/nim-lang/Nim/issues/15624 * Address https://github.com/nim-lang/Nim/pull/15937#discussion_r522759669 { though this was only a move from 2 copies to 3 copies. ;-) }
* Don't use os for Standalone (#15944)wilypomegranate2020-11-131-2/+2
|
* fix #15941 (#15948)flywind2020-11-131-4/+7
| | | | | | | * fix #15941 * add testcase * update
* js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, ↵Timothee Cour2020-11-121-215/+251
| | | | | | | | | | | `existsEnv` (v2) (#15826) * js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, `existsEnv` * refactor to osenv * fix for js (without -d:nodejs) + VM Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* make var string return var char w/ BackwardsIndex (#15461)hlaaftana2020-11-121-3/+3
| | | | | | | | * make var string return var char w/ BackwardsIndex fixes #14497 * work around VM bug * properly workaround again
* change some code-blocks to runnableExamples and correct some errors in docs ↵flywind2020-11-124-57/+51
| | | | | | | | | (#15900) * original docs are wrong * fix pathnorm * Update lib/pure/pathnorm.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Fix a problem for long symlinks in conda (#15908) [backport]Christopher Dunn2020-11-121-9/+10
| | | * https://github.com/conda-forge/nim-feedstock/commit/d8c80ea69dca30d99073d33845ddd79f9892755b#diff-e1d8e552330911f9f779f85b6f2c00a15e790dcc3fbb3b28f5da1d660a30c5b8
* fix #12726 Cannot take the compile-time sizeof Atomic types (#15928)Bung2020-11-121-7/+8
| | | | | * fix #12726 Cannot take the compile-time sizeof Atomic types * fix for arch 32
* Docs(strutils): Fix broken links (#15912)ee72020-11-111-9/+10
| | | | The `dedent` and `unindent` links were introduced by commit d67c5cb75171 (#15264).
* Correct all eggs (#15906)Miran2020-11-101-1/+1
| | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* fix #12471 (#15901)flywind2020-11-101-0/+3
| | | | | | | | | | | * fix #12471 * add testcase * fix * test nimdoc is tricky * Delete t12471.nim
* Add a macro returning enum items count (#15824)Ivan Bobev2020-11-091-0/+13
| | | | | | | Add a macro `enumLen` which is used to determine the number of items in an enumeration type to the `typetraits.nim` module. Also, add unit tests for it in the `ttypetraits.nim` module. Related to nimlang/Nim#15824
* Console apps in Windows can raise OSError (#15874)Luca Guzzon2020-11-081-1/+4
| | | | | | | | Console apps in Windows implementation can raise OSError so I've fixed it, see below some examples for reference: - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L170 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L178 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L191-L192 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L196-L197 - ...
* follow #11707(add pragmas examples for =>) (#15863)flywind2020-11-061-0/+10
|
* fix #15851 (#15852)flywind2020-11-061-6/+10
| | | | | * fix #15851 * {.cast(noSideEffect).}
* Tiny unittest doc fixClyybber2020-11-051-3/+2
|
* document #15618 (#15810)flywind2020-11-051-0/+9
| | | | | | | | | | | | | | * document #15618 * Update lib/pure/unittest.nim * Update lib/pure/unittest.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * Update lib/pure/unittest.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix adding empty sequence to HTTP headers (#15783)flywind2020-11-051-4/+7
| | | | | * fix adding empty sequence to HTTP headers * add tests
* change non-working example to runnableExamples (#15841)flywind2020-11-051-7/+5
|
* fix #15835 (#15838)flywind2020-11-041-0/+2
| | | | | * fix #15835 * add tests
* EnumUtils, speed up findStr in compiler (#15777)cooldome2020-11-031-58/+3
| | | | | | | | * add parseEnumRange * fix runnable example * update changelog * use parseEnumRange in compiler * reorganise code * add changelog, make single normalizer argument
* simplify toHex (#15821)Timothee Cour2020-11-021-29/+2
|
* fixes #15804 (#15820)Andreas Rumpf2020-11-021-12/+9
| | | | | | | | | * fixes #15804 * fix the existing test * add the testcase for #15804 Co-authored-by: narimiran <narimiran@disroot.org>
* fixes #15594 (#15819)flywind2020-11-021-0/+2
|
* more clear (#15812)flywind2020-11-021-2/+2
|
* Update tables documentation (#15807)Thomas Tay2020-11-021-0/+34
| | | | Added a case where a user might use mgetOrPut and create an accidental copy of a seq.
* fix #15815 (#15817)flywind2020-11-021-1/+4
|
* support par expression as checkpoint (#15802)flywind2020-10-311-1/+1
|
* Grammar fixesClyybber2020-10-301-4/+4
|
* promote `collect` macro as a map+filter replacement (#15788)Miran2020-10-302-1/+29
| | | | | * promote `collect` macro as a map+filter replacement * Update lib/pure/collections/sequtils.nim
* fix `toHex` - make it work with int literals (#15770)Miran2020-10-301-0/+12
|
* add approxequal (#15766)Antonis Geralis2020-10-301-1/+24
| | | | | | | | | | | | * add approxequal * Address review comments, tests that pass * more wikipedia links [ci skip] * forgot since Co-authored-by: b3liever <b3liever@yandex.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #15413 (#15768)Andreas Rumpf2020-10-291-21/+61
| | | | | | | * fixes #15413 * better hide it properly * see if this makes our list of important packages happy
* Make default state public (#15763)Antonis Geralis2020-10-291-0/+6
| | | | | | | * Make default state public * Address review comments Co-authored-by: b3liever <b3liever@yandex.com>
* fix #15750narimiran2020-10-281-0/+2
|
* fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734)shirleyquirk2020-10-271-1/+1
| | | | | | | | | | | | | | | * update c_malloc's to csize_t fix for broken --os:ios * I'm an idiot sorry * Create talgorithm.nim * workaround for #10456 I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is. * working test, use typeof rather than auto
* fix #15698 (#15699)rockcavera2020-10-251-0/+4
| | | | | | | | | | | * fix in the net.`$` to print zeros that are not in the compressed group * Update lib/pure/net.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update net.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Fix #12410 (#15685)Clyybber2020-10-231-1/+1
| | | | | * Fix #12410, big thanks to @pmetras for this fix * Add testcase
* Tables, use sink val arguments more actively (#15625)cooldome2020-10-192-10/+10
|
* Fix crash in parsexml (#15582) (#15583)Igor Ribeiro de Assis2020-10-151-0/+3
| | | Co-authored-by: Igor Ribeiro de Assis <igor.ribeiro_de_assis@zeiss.com>
* terminal: fix fgColor/bgColor commands [backport] (#15554)alaviss2020-10-131-4/+3
| | | | | Since #8296, fgSetColor is no longer a global. These commands were probably left out from the change as an oversight, so some tests have been added to make sure this won't happen again.
* dup docs: add an example with `addQuoted` (#15548)Timothee Cour2020-10-131-0/+5
| | | | | * dup docs: add addQuoted example * fixup
* Fix doc for CountTable (#15561) [backport]Christopher Dunn2020-10-131-1/+1
|
* close socket in getPrimaryIPAddr even if exception occurs (#15558)Christian Ulrich2020-10-121-3/+5
|
* docs minor (#15550)flywind2020-10-111-2/+2
|
* os: add overload copyFile*(source, dest: string, isDir = false) (#15537)Timothee Cour2020-10-111-1/+7
| | | | | * os: add overload copyFile*(source, dest: string, isDir = false) * renamed to copyFileToDir
* close socket in getPrimaryIPAddr (#15538) [backport]Christian Ulrich2020-10-101-1/+2
|
* Update parsecfg.nim (#15513)lihaifeng2020-10-081-4/+5
| | | | | | | | | | | | | | | | | | | * Update parsecfg.nim Returns the specified default value if the specified key value does not exist. * Update lib/pure/parsecfg.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update lib/pure/parsecfg.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update lib/pure/parsecfg.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* update unittest docs with correct exit code info (#15502)Serban Constantin2020-10-061-2/+2
|