summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Convertion procs for (IpAddress, Port) <-> (SockAddr, Socklen)Yuriy Glukhov2018-03-141-0/+33
|
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2018-03-123-26/+72
|\
| * 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.
| * lib/system: Fix programResult documentation (#7307)alaviss2018-03-071-3/+3
| |
* | fixes httpclient documentation commentAraq2018-03-121-1/+1
|/
* Fixes #7212, now with better code (#7302)Simon Krauter2018-03-061-0/+7
| | | When platform is Windows and app type is GUI, an error about missing DLL file is displayed as message box in addition to the console output, which is usually not visible.
* more documentation fixesAraq2018-03-051-5/+7
|
* strutils.strip: improve the documentation; fixes #7159Andreas Rumpf2018-03-051-1/+3
|
* make re.split consistent with strutils.split and other programming ↵Andreas Rumpf2018-03-051-14/+28
| | | | languages; refs #7278
* fixes #7293Andreas Rumpf2018-03-051-3/+3
|
* Fixes 7283 (#7284)cooldome2018-03-051-0/+4
|
* development version is 0.18.1Araq2018-03-051-1/+1
|
* fixes #7291Araq2018-03-051-1/+1
|
* algorithm.nim: change formatting to Nim's defaultsAraq2018-03-051-4/+4
|
* Cleanup docs about re.nimAraq2018-03-051-5/+1
|
* Merge pull request #7289 from alehander42/fix-asyncjs-pragmaDominik Picheta2018-03-051-1/+2
|\ | | | | Stop replacing all pragmas of a function with asyncjs
| * Use addPragmaAlexander Ivanov2018-03-051-5/+1
| |
| * Stop replacing all pragmas of a function with asyncjsAlexander Ivanov2018-03-031-1/+6
| |
* | 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
|/
* bump version to 0.18.0Araq2018-03-011-2/+2
|
* 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-012-5/+23
|
* 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-272-44/+50
| |
* | revert commit 6cf8a72d498f5cb8a532c2ff3259bc7aecf474ef; Windows fixes getch bugAraq2018-02-271-4/+1
| |
* | merged #6512 manually; fixes #6431Araq2018-02-271-0/+14
| |
* | Fix return (#7225)Alexander Ivanov2018-02-271-6/+8
| |
* | make the allocator take a special path for allocations bigger than 2GB; ↵Araq2018-02-271-2/+26
| | | | | | | | fixes #7120
* | system.nim: fix harmless typoAndreas Rumpf2018-02-261-1/+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
|
* Move joyent_http_parser out of stdlib.Dominik Picheta2018-02-171-93/+0
|
* Fixes #5786.Dominik Picheta2018-02-171-117/+0
|
* Merge pull request #7228 from endragor/fix-asyncfile-openDominik Picheta2018-02-172-7/+7
|\ | | | | Fix AsyncFile open flags. Fixes #5531
| * Fix AsyncFile open flags. Fixes #5531Ruslan Mustakov2018-02-172-7/+7
| |