summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Comparing datetimesdata-man2018-04-011-0/+12
|
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2018-03-305-14/+143
|\
| * Add some missing things to dom.nimtreeform2018-03-291-0/+44
| | | | | | Add window.performance, window.performance.now(), window.devicePixelRatio, window.scrollX and Y, style.overflowX and Y, node.getBoundingRect.
| * Fixes #7433.Dominik Picheta2018-03-291-0/+10
| |
| * Merge pull request #7075 from lcrees/get_defaultDominik Picheta2018-03-291-13/+80
| |\ | | | | | | Add default argument to tables.getOrDefault
| | * Add default argument to 'tables.getOrDefault'lcrees2018-01-131-13/+80
| | |
| * | Merge pull request #7423 from alehander42/feature-disable-param-filteringDominik Picheta2018-03-291-1/+6
| |\ \ | | | | | | | | Unittest param filtering
| | * | Disable param filteringAlexander Ivanov2018-03-271-1/+6
| | | |
| * | | net.connect (with timeout), raise error on connect failureGraham Fawcett2018-03-281-0/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | Under Linux (probably POSIX), the current code tests for timeout, but does not test for connection failure. connectAsync() returns succesfully upon an EINPROGRESS result; but at this point, the connection state is still unknown. After selectWrite() is done, we need to test the socket for errors again.
* / / further steps in implementing sink parameters; refs #7041Araq2018-03-302-0/+10
|/ /
* | added toOpenArray builtin for zero-copy slices; syntax sugar yet to comeAraq2018-03-241-0/+10
| |
* | mysql.nim: fixes how the DLL version loading worksAndreas Rumpf2018-03-241-2/+2
| |
* | Add an example to the `dynlib` module docEuan T2018-03-211-0/+43
| | | | | | Following a quesiton on Gitter about loading libraries dynamically based upon some runtime parameter, I noticed there's no documentation on the `dynlib` module for something that's quite common.
* | libssl.so.44 fix (#7358)Solitude2018-03-201-1/+1
| |
* | Merge pull request #7356 from GULPF/parseXml-stringDominik Picheta2018-03-181-10/+15
|\ \ | | | | | | Add string overload for parseXml
| * | Add string overload for parseXmlOscar Nihlgård2018-03-181-10/+15
| | |
* | | fix allocator corruption for large sizes (#7338)jcosborn2018-03-171-36/+45
| | | | | | | | | | | | | | | | | | * fix allocator corruption for large sizes * allow large chunks to coalesce and added test case * use correct constants in MaxBigChunkSize
* | | 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
| |
* | Add CommentStmt to astGenRepr (#7313)PMunch2018-03-161-2/+2
| | | | | | | | | | | | * Added codeRepr and dumpCode to the macros module. This allows those writing macros to write examples, get the code to generate the AST for that example, and then modify that code to be dynamic with the macro function.
* | [Documentation] free -> dealloc (#7334)WhiteDuke2018-03-161-3/+3
| |
* | json.nim: documentation copy&paste issueAndreas Rumpf2018-03-161-1/+1
| |
* | 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
| | |