summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8001 from kaushalmodi/fix-isupper-islower-try2Andreas Rumpf2018-06-092-49/+146
|\ | | | | Make isUpper (and variants) work for strings with non-alpha chars
| * Make isUpper (and variants) work for strings with non-alpha charsKaushal Modi2018-06-082-49/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The other variants are isLower, isUpperAscii and isLowerAscii Fixes https://github.com/nim-lang/Nim/issues/7963. This commit changes the behavior and signatures of: - isUpper, isLower in the unicode module - isUpperAscii, isLowerAscii in the strutils module A second mandatory parameter skipNonAlpha is added to these 4 procs. (This change affects only for the case where the input is a *string*.) --- With skipNonAlpha set to true, the behavior mimics the Python isupper and islower behavior i.e. non-alphabetic chars/runes are ignored when checking if the string is upper-case or lower-case. Before this commit: doAssert(not isUpper("A B")) After this commit: doAssert(not isUpper("A B", false)) <-- old behavior doAssert isUpper("A B", true) Below two are equivalent: isUpper("A B", true) isAlpha("A B") and isUpper("A B", false) .. and the similar for other 3 procs.
* | Change parseEnum to something faster for method parsing in asynchttpserver ↵hlaaf2018-06-081-2/+15
|/ | | | | | | | | | (#7682) * Add faster method parsing to asynchttpserver * Make it readable * Align case statement
* Removed redundant conditions in CritBitTree.inc, speedup it.data-man2018-06-081-4/+1
|
* Add the val parameter for CritBitTree[T].incl (#7988)Dmitry Atamanov2018-06-081-0/+20
| | | | | | * Add the val parameter for CritBitTree[T].incl * Updated changelog
* Merge pull request #7992 from yglukhov/fromSockAddr-compile-errorAndreas Rumpf2018-06-081-1/+1
|\ | | | | Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr
| * Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddrYuriy Glukhov2018-06-071-1/+1
| |
* | fixes seq copying in channels for --gc:regionsAraq2018-06-071-1/+1
|/
* Fixed bug in CritBitTree.inc. Fixes #7990.data-man2018-06-071-1/+10
|
* Quote a keys for CritBitTree $ impl. Fixes #7987data-man2018-06-071-4/+8
|
* Merge pull request #7806 from survivorm/feature/times_mutatorsAndreas Rumpf2018-06-071-37/+22
|\ | | | | Feature/times mutators
| * [change] Replace mutators with their more generic versionsMichael Voronin2018-06-061-37/+22
| |
* | Fix one more place.cheatfate2018-06-071-1/+1
| |
* | Fix fromSockAddrAux() to handle IPv6 addresses properly.cheatfate2018-06-071-9/+16
| |
* | Merge pull request #7822 from data-man/fix_2753Andreas Rumpf2018-06-071-1/+1
|\ \ | | | | | | Fixes #2753
| * \ Merge branch 'devel' of https://github.com/nim-lang/Nim into fix_2753data-man2018-05-198-522/+733
| |\ \
| * | | Fixes #2753data-man2018-05-141-1/+1
| | | |
* | | | Rip out the `try` transformation in the async macro.Dominik Picheta2018-06-061-105/+6
| | | |
* | | | Merge pull request #7907 from GULPF/lexer-unicode-fixAndreas Rumpf2018-06-061-1/+1
|\ \ \ \ | | | | | | | | | | Lexer fix for multi byte characters
| * | | | Multi byte characters should not be treated as part of an operatorOscar Nihlgård2018-06-031-1/+1
| | | | |
* | | | | Merge pull request #7966 from hlaaftana/patch-4Andreas Rumpf2018-06-061-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix GC_getStatistics calling itself GC_disableMarkAndSweep in JS (again)
| * | | | | Fix GC_getStatistics calling itself GC_disableMarkAndSweep in JS (again)hlaaf2018-06-061-1/+1
| | | | | |
* | | | | | Allow `%` overloading in `%*` macro in json (again)hlaaf2018-06-061-4/+4
|/ / / / /
* | | | | Merge pull request #7770 from yglukhov/yield-in-tryAndreas Rumpf2018-06-052-0/+7
|\ \ \ \ \ | | | | | | | | | | | | Yield in try
| * \ \ \ \ Merge branch 'devel' into yield-in-tryYuriy Glukhov2018-05-156-6/+21
| |\ \ \ \ \
| * | | | | | Yield in tryYuriy Glukhov2018-05-092-0/+7
| | | | | | |
* | | | | | | Fix typo: PRCE -> PCREKaushal Modi2018-06-051-3/+3
| | | | | | |
* | | | | | | Rename tgamma to gamma (#7929)Koki Fushimi2018-06-051-3/+10
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename tgamma to gamma * set the deprecating version 0.19.0 * update changelog and use description in deprecated pragma
* | | | | | Fix strformat neg zero (#7954)skilchen2018-06-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix strformat handling of neg zero with sign * better tests for neg zero with sign * use inplace insertion of the sign as suggested by Varriount
* | | | | | Fix strformat precision handling for strings (#7941)skilchen2018-06-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix strformat precision handling for strings * add some limited unicode awareness to the precision handling for strings * improvement suggested by Varriount: use setLen and runeOffset instead of runeSubstr
* | | | | | Add product proc (#7951)Koki Fushimi2018-06-041-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add product proc * Update changelog
* | | | | | Use higher time resolution when available in os.nim (#7709)Oscar Nihlgård2018-06-043-19/+45
| | | | | |
* | | | | | db_mysql.nim: Work around string nil comparison logicAndreas Rumpf2018-06-041-1/+1
| | | | | |
* | | | | | Expose GC_setStackBottom (#7885)Yuriy Glukhov2018-06-045-13/+17
| | | | | |
* | | | | | Update sqlite example to use empty strings.Varriount2018-06-031-1/+1
| | | | | | | | | | | | | | | | | | Update sqlite example to use empty strings to use empty strings instead of nil.
* | | | | | fix handling of default precision in formatBiggestFloat for the js backend ↵skilchen2018-06-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | (#7928)
* | | | | | fix strformat zeropadding for floats (#7934)skilchen2018-06-011-2/+20
| | | | | |
* | | | | | Added $ for openarrays. Fixes #7940.data-man2018-06-011-0/+8
| | | | | |
* | | | | | Update example (#7788)Federico Ceratto2018-06-011-1/+1
| | | | | |
* | | | | | Add imaginary unit. (#7922)Koki Fushimi2018-06-011-0/+4
| | | | | |
* | | | | | Support `div`, `mod`, floorDiv and floorMod for Rationals (#7918)Koki Fushimi2018-06-011-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support `div`, `mod`, floorDiv and floorMod for Ratinoals. * Bug fix and add tests. * Update changelog
* | | | | | Add note to import "std/sha1" to sha1.nim (doc)Torro2018-06-011-0/+2
| | | | | |
* | | | | | Merge branch 'feature/times_fixup' of https://github.com/survivorm/Nim into ↵Dominik Picheta2018-05-311-218/+503
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | survivorm-feature/times_fixup
| * | | | | | [add] Add fraction of seconds to parse/format utilsMichael Voronin2018-05-311-60/+75
| | | | | | |
| * | | | | | [add] add between function to calculate TI between two datetimesMichael Voronin2018-05-311-0/+103
| | | | | | |
| * | | | | | [add] Add procs for TimeInterval stringifyMichael Voronin2018-05-311-1/+34
| | | | | | |
| * | | | | | [add+change] Added toDurationParts proc to convert Duration to ↵Michael Voronin2018-05-311-22/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | array[FixedTimeUnit, int64] of it's human-readable parts, use it in `$Duration`
| * | | | | | [doc] Standardize deprecation warningsMichael Voronin2018-05-101-8/+7
| | | | | | |
| * | | | | | [add] Add some wrappersMichael Voronin2018-05-101-0/+20
| | | | | | |
| * | | | | | [refactoring] Rearrange functions for better readability/usageMichael Voronin2018-05-101-139/+155
| | | | | | |