summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add doc to parsexml.nim for template assertionsChris Heller2016-07-021-0/+21
| | | Added additional documentation for parsexml.nim to describe the assertions that are used to check the parser's current status when accessing parser data.
* Merge pull request #4361 from jyapayne/fix_splitAndreas Rumpf2016-07-021-70/+88
|\ | | | | Fix #4305: Make split proc for set[char] consistent
| * Add transition define for old split behaviorJoey Payne2016-07-011-1/+26
| |
| * Fix #4305: Make split proc for set[char] consistentJoey Payne2016-07-011-70/+63
| |
* | Merge pull request #4389 from jyapayne/add_unicode_procsAndreas Rumpf2016-07-024-67/+332
|\ \ | | | | | | Add unicode procs
| * | Fix modules that import both strutils and unicodeJoey Payne2016-07-012-5/+5
| | | | | | | | | | | | | | | This is only an issue when a proc in both modules that is named the same is used, such as toLower or toUpper for strings.
| * | Add useful unicode procs for string manipulationJoey Payne2016-07-012-62/+327
| |/ | | | | | | | | | | | | Added: isUpper, isLower, isAlpha, isWhiteSpace, toUpper, toLower, and capitalize Renamed strutils procs that are similar to avoid conflicts
* / Remove line breaks in OSError messages (Windows)Vladislav Vorobiev2016-07-011-2/+2
|/ | | | | | | | | | | Before: ``` Error: unhandled exception: Не удается найти указанный файл. [OSError] ``` After: ``` Error: unhandled exception: Не удается найти указанный файл. [OSError] ```
* Merge pull request #4401 from zachaysan/add_http_status_codesAndreas Rumpf2016-06-281-0/+8
|\ | | | | Add http status codes
| * Fix typoZach Aysan2016-06-231-1/+1
| |
| * Add missing - yet necessary - HTTP status codes.Zach Aysan2016-06-231-0/+8
| |
* | Merge pull request #4419 from endragor/android4-socketsAndreas Rumpf2016-06-283-6/+20
|\ \ | | | | | | Added 'android4' define that declares a different gethostbyaddr
| * | Added 'android4' define support that declares a different gethostbyaddr. ↵Ruslan Mustakov2016-06-223-6/+20
| |/ | | | | | | Fixes #4376
* | Merge pull request #4408 from euantorano/feature-strutils-isNilOrEmptyAndreas Rumpf2016-06-281-1/+27
|\ \ | | | | | | Adding isNilOrEmpty and isNilOrWhitespace
| * | Fixing isNilOrWhitespace to handle empty/nil.Euan2016-06-241-2/+7
| | |
| * | Fixing isNilOrWhitespace for empty/nil strings.Euan2016-06-241-1/+1
| | | | | | | | | | | | | | | `isSpace` returns false for an empty string, which is the opposite of this method.
| * | 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 #4403 from miere43/win-getchAndreas Rumpf2016-06-282-12/+35
|\ \ | | | | | | Implemented terminal.getch() for Windows
| * | Added stdcall pragma to WINAPI methods.miere432016-06-261-8/+7
| | |
| * | getch() asserts to doAssertsmiere432016-06-261-2/+2
| | |
| * | Removed INPUT_KEY_RECORDmiere432016-06-262-21/+14
| | |
| * | Implemented terminal.getch() for Windowsmiere432016-06-232-12/+43
| |/
* | one more cosmetic changecheatfate2016-06-261-13/+9
| |
* | Some cosmetic changes, and commentscheatfate2016-06-261-210/+198
| |
* | Event enum is now .pure.cheatfate2016-06-261-435/+366
| | | | | | | | | | | | Modified getMaxFds() to work more properly. Removed seqs from code Some exceptions replaced with doAssert
* | Small version of ioselectors.nim, without code duplication and some renames.cheatfate2016-06-231-0/+1849
|/
* 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
| | |