summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* fixes #7347, asyncfile.getFileSize (#7354)andri lim2018-03-171-0/+4
| | | | | | * fixes #7347 * fixes #7347
* More flexible lowerBound interface (#7344)Yuriy Glukhov2018-03-161-1/+1
|
* json.nim: documentation copy&paste issueAndreas Rumpf2018-03-161-1/+1
|
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2018-03-122-23/+69
|\
| * FIXUP: Removed +1 causing substr slicing to skip chars on first iteration of ↵ryanc-signiq2018-03-081-1/+6
| | | | | | | | while loop (#7312)
| * Add ability for users to elide ':' or '=' when CLI authors pass a (#7297)c-blake2018-03-081-22/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability for users to elide ':' or '=' when CLI authors pass a non-empty partial symbol table. Behavior should be identical to the old behavior if empty partial symbol tables are passed. "Partialness" of the symbol table refers to the fact that one need only specify option keys that are toggles/booleans/do not take arguments, hence the "NoArg" suffixes in shortNoArg and longNoArg. commandLineParams() returns seq[TaintedString], so use that consistently in getopt() and initOptParser(seq[TaintedString]) dropping the taint at the quoting stage just as with the paramStr() logic. Fix capitalization inconsistency of cmdLongOption. Export OptParser.cmd and OptParser.pos so that, at least *in principle*, users of this API can handle "--" option processing termination or some "git-like" sub-command stop word with a separate option sub-syntax. { Eg., ``case p.key of "": echo "trailing non-option args: ", p.cmd[p.pos..^1]`` or ``case p.kind of cmdArgument: if p.key == "mysubcmd": ...``. } Really, searching for the last delimiter before p.pos is probably needed to frame the trailing text..Not the nicest API, but still possible with effort. * Make requested changes from string to seq[char] (see https://github.com/nim-lang/Nim/pull/7297) * Document new behavior and elaborate on some special cases. * NoArg => NoVal to be less ambiguous/more clear. * Add more documentation and an example snippet. * Tweak language. Clarify still using ':'/'=' is ok. * Add a test case for new NoVal behavior.
* | fixes httpclient documentation commentAraq2018-03-121-1/+1
|/
* more documentation fixesAraq2018-03-051-5/+7
|
* strutils.strip: improve the documentation; fixes #7159Andreas Rumpf2018-03-051-1/+3
|
* fixes #7293Andreas Rumpf2018-03-051-3/+3
|
* algorithm.nim: change formatting to Nim's defaultsAraq2018-03-051-4/+4
|
* Changes `entityToUtf8` implementation from `htmlparser` and add two procs ↵Tim2018-03-041-77/+1521
| | | | | | | | | (#7288) `entityToUtf8` now supports every entity name and decimal and hexadecimal values from https://dev.w3.org/html5/html-author/charref. As it finally turned out, the `case` implementation generates even a smaller binary size compared to a `[(name, val)]` implementation. Additionally the procs `entityToRune` and `runeToEntity` are now available. The last one only generates numeric html entities, so it doesn't need a lookup table.
* Resolves #5588: adds openFileStream proc that throws on failure (#7282)twetzel592018-03-041-0/+10
|
* Improves documentation for strformat module.Dominik Picheta2018-03-011-149/+192
| | | | | | * Adds description of the difference between ``fmt`` and ``&``. * Moves runnable examples to bottom of file. * Separates examples at the top of module better.
* make travis green againAndreas Rumpf2018-03-011-18/+18
|
* added -d:nimNoArrayToString define to allow easier porting to 0.18Araq2018-03-011-1/+19
|
* deprecate parseopt2 stdlib moduleAndreas Rumpf2018-02-281-0/+1
|
* Merge pull request #7251 from zevv/issue-6270-sleepAsync-timer-resolutionDominik Picheta2018-02-281-1/+1
|\ | | | | Allow float argument to sleepAsync() to allow sub-millisecond resolution
| * Allow float argument to sleepAsync() to allow sub-millisecond resolutionIco Doornekamp2018-02-231-1/+1
| |
* | move `readPasswordFromStdin` from rdstdin to terminal (#7266)Vindaar2018-02-271-0/+50
| |
* | revert commit 6cf8a72d498f5cb8a532c2ff3259bc7aecf474ef; Windows fixes getch bugAraq2018-02-271-4/+1
| |
* | make osproc.execProcesses more robustAndreas Rumpf2018-02-251-2/+2
| |
* | Detect openssl related to outdated openssl and help user solve issue.Dominik Picheta2018-02-251-2/+8
| |
* | Parsecsv mutability (#7253)Misha Kotwica2018-02-241-11/+11
|/ | | | | | | | * parsecsv: immutable vars into lets improving readability * parsecsv.rowEntry: add mutable access
* Improve SSL error message in httpclient.Dominik Picheta2018-02-221-5/+6
|
* Fix style string formatting for cursorBackward and cursorForward (#7243)antizealot13372018-02-221-2/+2
|
* Fix toCountTable and newCountTablekonqoro2018-02-211-21/+20
|
* Remove repetitive index checks in b30b9207510a62b.Dominik Picheta2018-02-191-139/+67
|
* Fix date parsing for a bad inputsdata-man2018-02-191-59/+139
|
* Merges #7226 manually.Dominik Picheta2018-02-191-0/+25
|
* Revert "Fixes #4265."Dominik Picheta2018-02-171-1/+1
| | | | This reverts commit fe6fddb9d83c099ee407bced8d59e11e351ecd58.
* Fixes #4265.Dominik Picheta2018-02-171-1/+1
|
* Fixes #7227.Dominik Picheta2018-02-171-0/+5
|
* Merge pull request #7228 from endragor/fix-asyncfile-openDominik Picheta2018-02-171-7/+6
|\ | | | | Fix AsyncFile open flags. Fixes #5531
| * Fix AsyncFile open flags. Fixes #5531Ruslan Mustakov2018-02-171-7/+6
| |
* | fixes #7215Andreas Rumpf2018-02-141-1/+1
| |
* | Fixes #4995. (#7157)Dominik Picheta2018-02-136-19/+72
| |
* | add more functionality from sets to intsets (#7185)Imran Hendley2018-02-121-21/+156
| | | | | | | | | | | | | | | | | | | | | | | | * add more functionality from sets to intsets * remove -+- * < and == performance * don't hardcode s.a.len * remove shortcuts from < and ==
* | Merge pull request #7205 from GULPF/json-to-fixDominik Picheta2018-02-121-1/+1
|\ \ | | | | | | Fix `json.to` for types with generic parameters
| * | Fix `json.to` for types with generic parametersOscar Nihlgård2018-02-111-1/+1
| | |
* | | Add `parseHtml` overload for string (#7198)Oscar Nihlgård2018-02-101-7/+12
| | |
* | | move new sha1 module into the new 'std' namespaceAndreas Rumpf2018-02-062-196/+1
|/ /
* | fixes #6939Andreas Rumpf2018-02-021-5/+10
| |
* | fixes #6961Andreas Rumpf2018-02-022-192/+198
|/
* Merge pull request #6796 from nim-lang/async-improvementsDominik Picheta2018-01-2811-38/+109
|\ | | | | Async improvements
| * Revert 3db460f5045e790b54ea382 as requested by @Araq.Dominik Picheta2018-01-283-27/+14
| |
| * Merge branch 'devel' into async-improvementsDominik Picheta2018-01-1734-1191/+2485
| |\
| * \ Merge branch 'devel' into async-improvementsAndreas Rumpf2017-12-1120-305/+488
| |\ \
| * | | Fix asyncdispatch docgenDominik Picheta2017-11-261-2/+2
| | | |
| * | | Fix typo in asyncfile.Dominik Picheta2017-11-241-1/+1
| | | |