summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Adding isNilOrEmpty and isNilOrWhitespaceEuan2016-06-241-1/+22
| | | | | | | | As discussed in #4184, this patch adds `isNilOrEmpty` and `isNilOrWhitespace` to `strutils`. It also modifies the existing `isSpace` proc slightly to exit early rather than looping through all characters in a string.
* Merge pull request #4391 from edubart/fix-awaitDominik Picheta2016-06-211-1/+1
|\ | | | | Fix #4390
| * Fix #4390Eduardo Bart2016-06-211-1/+1
| |
* | Fix a warning about result reused in macros.nim.Hans Raaf2016-06-211-3/+3
|/
* Merge pull request #4360 from jyapayne/add_walktreeAndreas Rumpf2016-06-211-10/+46
|\ | | | | Add walkPattern to list both directories and files
| * Add `walkPattern` to return both files and directoriesJoey Payne2016-06-171-10/+46
| | | | | | | | | | Also added `walkDirs` to walk only directories based on the pattern specified.
* | Corrected comment in maths library.A. S. Budden2016-06-201-1/+1
| |
* | Merge pull request #4370 from edubart/future-withtimeoutDominik Picheta2016-06-191-0/+18
|\ \ | | | | | | Add withTimeout proc for futures
| * | Add withTimeout proc for futuresEduardo Bart2016-06-191-0/+18
| | |
* | | Merge pull request #4344 from ReneSac/queuesAndreas Rumpf2016-06-191-33/+184
|\ \ \ | |/ / |/| | Enchanced random access support for queues among other changes
| * | Remove high() and low() procs from queues moduleReneSac2016-06-161-13/+2
| | | | | | | | | | | | | | | Just in case as they are said not overloadable. No deprecation because this is during a PR: those procs didn't exist before. Also update comment due to failed optimization attempt using copyMem() for POD datatypes.
| * | Fixes for things pointed by Araq on the PRReneSac2016-06-161-27/+18
| | |
| * | Improved the documentation and miscelaneousReneSac2016-06-151-33/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | Better bounds checking. Tried to make it and documentation comply with the conflicting style guides. Added example of usage at the top of the module as well as warnings on usage. Also fix the back() and internal englishOrdinal() proc from previous commit. Added {.discardable.} pragma for .pop(), when calling only for it's side effects. Sprinkled some unlikely() for optimization. Some new tests reflecting those changes.
| * | Enchanced random access support for queuesReneSac2016-06-121-24/+126
| | | | | | | | | | | | | | | | | | Now queues support indexing, front() and back() operations and pairs iteration. Also modernized some of the code to use newer Nim features. Added the "add()" alias to "enqueue()", per nim's conventions (also fits better with pop())
* | | Fix times.`+` and `-` for TimeInfo and TimeInterval.Dominik Picheta2016-06-181-3/+9
| | |
* | | Update math.nimmatkuki2016-06-181-1/+1
| | |
* | | Windows MSVC < 2012 'round' function updatematkuki2016-06-171-5/+11
| |/ |/| | | | | Microsoft Visual C++ compilers prior to 2012 do not implement the 'round', 'roundl' or 'roundf' functions. This change is fixes this. Tested it with MSVC 2010.
* | Merge pull request #4357 from SSPkrolik/json-containsDominik Picheta2016-06-171-0/+10
|\ \ | | | | | | Implemented `in` operator support for JsonNode objects
| * | Implemented `in` operator support for JsonNode objectsRostyslav Dzinko2016-06-171-0/+10
| | |
* | | Merge pull request #4352 from jyapayne/fix_walkfilesDominik Picheta2016-06-171-1/+4
|\ \ \ | | | | | | | | Fix #4280: os.walkFiles yields directories on Unix systems
| * | | Fix #4280: os.walkFiles yields directories on Unix systemsJoey Payne2016-06-161-1/+4
| |/ / | | | | | | | | | Files were not properly checked to actually be files after globbing.
* | | Lets make arguments names equal on all platforms.cheatfate2016-06-171-2/+2
| | |
* | | New version, without any piece of code duplication.cheatfate2016-06-172-2/+163
|/ /
* | Merge pull request #4336 from cheatfate/protectwinrwAndreas Rumpf2016-06-161-0/+16
|\ \ | | | | | | Implement protection on callback environment.
| * | One more place to release callback environment protectioncheatfate2016-06-141-0/+2
| | |
| * | Implement protection on callback environment.cheatfate2016-06-141-0/+14
| | |
* | | Fix empty body on HTTP/1.0 connectionsHendrik Richter2016-06-161-6/+7
| | | | | | | | | | | | | | | HTTP/1.0 does not send `Connection: close`. Thus we read till the end of the response in order to catch the whole body.
* | | Enhance values SIGNALS on more OS.cheatfate2016-06-161-1/+2
| | | | | | | | | | | | Checked systems OpenBSD, NetBSD, FreeBSD, Solaris.
* | | Reverts 1446dc87c3. Fixes #4333. Fixes #4170.Dominik Picheta2016-06-151-6/+4
| | |
* | | attempt to fix a critical memory leak in Nim's collectionsAndreas Rumpf2016-06-152-0/+12
| | |
* | | moved expandTabs to strmiscAndreas Rumpf2016-06-152-48/+35
| | |
* | | fixes #3045Andreas Rumpf2016-06-151-0/+166
| | |
* | | Stdlib: nre: Docstring improved.Konstantin Molchanov2016-06-151-1/+0
|/ /
* | Merge pull request #4316 from cheatfate/windowsEventSelectDominik Picheta2016-06-142-0/+241
|\ \ | | | | | | addRead/addWrite for Windows IOCP.
| * | Resolve some dom96 commentscheatfate2016-06-121-11/+16
| | |
| * | Introduce addRead/addWrite for Windows IOCP.cheatfate2016-06-122-0/+236
| | |
* | | Resolve #4334cheatfate2016-06-141-5/+6
| | |
* | | Merge pull request #4276 from jyapayne/develAndreas Rumpf2016-06-143-34/+526
|\ \ \ | | | | | | | | Add extra string functions to strutils to satisfy part of #4218 and #4251
| * | | Move partition and rpartition to new strmisc moduleJoey Payne2016-06-132-40/+56
| | | | | | | | | | | | | | | | | | | | | | | | This was done because partition is an uncommonly used proc that is still useful in rare cases. There is also a desire to add more procs to this module at a later time.
| * | | Add new procs for string manipulationJoey Payne2016-06-132-34/+510
| | | | | | | | | | | | | | | | | | | | Add center, isTitle, title, partition, rpartition, rsplit, swapCase, translate, and expandTabs
* | | | Merge pull request #4326 from kierdavis/fix-4325Andreas Rumpf2016-06-141-1/+1
|\ \ \ \ | | | | | | | | | | Implement clear() for CountTableRef. Fixes #4325.
| * | | | Implement clear() for CountTableRef. Fixes #4325.Kier Davis2016-06-131-1/+1
| | | | |
* | | | | Added missing export marker.A. S. Budden2016-06-131-1/+1
| | | | |
* | | | | Correction as I hadn't realised setvbuf had been renamed.A. S. Budden2016-06-131-3/+3
| | | | |
* | | | | Merged upstream/devel into this branch to resolve conflicts and ensure an ↵A. S. Budden2016-06-1325-348/+405
|\| | | | | | | | | | | | | | | | | | | easy merge back into upstream/devel
| * | | | Fixed emscripten compilationYuriy Glukhov2016-06-131-1/+1
| |/ / /
| * | | Merge pull request #4317 from karantin2020/xmlfixDominik Picheta2016-06-131-3/+12
| |\ \ \ | | | | | | | | | | xmldom fix
| | * | | In xmldom module added default attribute names checkfor namespace creation, ↵karantin20202016-06-121-3/+12
| | |/ / | | | | | | | | | | | | see https://www.w3.org/XML/1998/namespace
| * | | fixes sysio/readChar regressionAndreas Rumpf2016-06-131-1/+1
| | | |
| * | | de-deprecate re.nimAndreas Rumpf2016-06-131-5/+6
| | | |