summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #5281 (#7489)Dmitry Atamanov2018-04-061-0/+2
|
* Merge pull request #7471 from yglukhov/fixed-times-cpp-windows-32Dominik Picheta2018-04-051-3/+6
|\ | | | | Fixed compilation of times.nim with mingw 4.9.2 C++ 32bit
| * Fixed compilation of times.nim with mingw 4.9.2 C++ 32bitYuriy Glukhov2018-04-031-3/+6
| |
* | Merge pull request #7483 from GULPF/cookies-timezonesDominik Picheta2018-04-041-12/+12
|\ \ | | | | | | Don't assume UTC in cookies.setCookie
| * | Don't assume UTC in cookies.setCookieOscar Nihlgård2018-04-031-12/+12
| | |
* | | Merge pull request #7450 from cabhishek/develDominik Picheta2018-04-041-1/+1
|\ \ \ | | | | | | | | Fixes #6902
| * | | Fixes #6902Abhishek Kapatkar2018-03-301-1/+1
| | | |
* | | | Merge pull request #7495 from GULPF/fix-fill-bugDominik Picheta2018-04-041-3/+24
|\ \ \ \ | | | | | | | | | | Fix algorithm.fill for empty input
| * | | | Fix algorithm.fill for empty inputOscar Nihlgård2018-04-041-3/+11
| | | | |
| * | | | Move algorithm tests away from kochOscar Nihlgård2018-04-041-0/+13
| | |/ / | |/| |
* | | | Fix documentation link for set type (#7465)Roman Ovseitsev2018-04-031-1/+1
| | | |
* | | | Fix compiler stuck on waiting C/CPP backends. (#7472)Eugene Kabanov2018-04-021-1/+7
| |_|/ |/| |
* | | Merge pull request #7459 from arnetheduck/posix-rlimit-nofileDominik Picheta2018-04-022-8/+4
|\ \ \ | | | | | | | | RLIMIT_NOFILE as posix const
| * | | RLIMIT_NOFILE as posix constJacek Sieka2018-04-012-8/+4
| | |/ | |/|
* | | Merge pull request #7336 from yglukhov/ipaddr-sockaddr-conversionsDominik Picheta2018-04-022-1/+38
|\ \ \ | | | | | | | | Conversion procs for (IpAddress, Port) <-> (SockAddr, Socklen)
| * | | Comments addressedYuriy Glukhov2018-03-241-1/+1
| | | |
| * | | More flexible fromSockAddr interfaceYuriy Glukhov2018-03-151-5/+9
| | | |
| * | | Fixed crash/interface. Added tests.Yuriy Glukhov2018-03-152-7/+7
| | | |
| * | | Convertion procs for (IpAddress, Port) <-> (SockAddr, Socklen)Yuriy Glukhov2018-03-141-0/+33
| | | |
* | | | Comparing datetimesdata-man2018-04-011-0/+12
| |/ / |/| |
* | | 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.
* | | | 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.
* | | | 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
| | |_|/ | |/| |
* / | | 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
| | |