Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #8001 from kaushalmodi/fix-isupper-islower-try2 | Andreas Rumpf | 2018-06-09 | 2 | -49/+146 |
|\ | | | | | Make isUpper (and variants) work for strings with non-alpha chars | ||||
| * | Make isUpper (and variants) work for strings with non-alpha chars | Kaushal Modi | 2018-06-08 | 2 | -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 ↵ | hlaaf | 2018-06-08 | 1 | -2/+15 |
|/ | | | | | | | | | | (#7682) * Add faster method parsing to asynchttpserver * Make it readable * Align case statement | ||||
* | Removed redundant conditions in CritBitTree.inc, speedup it. | data-man | 2018-06-08 | 1 | -4/+1 |
| | |||||
* | Add the val parameter for CritBitTree[T].incl (#7988) | Dmitry Atamanov | 2018-06-08 | 1 | -0/+20 |
| | | | | | | * Add the val parameter for CritBitTree[T].incl * Updated changelog | ||||
* | Merge pull request #7992 from yglukhov/fromSockAddr-compile-error | Andreas Rumpf | 2018-06-08 | 1 | -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 fromSockAddr | Yuriy Glukhov | 2018-06-07 | 1 | -1/+1 |
| | | |||||
* | | fixes seq copying in channels for --gc:regions | Araq | 2018-06-07 | 1 | -1/+1 |
|/ | |||||
* | Fixed bug in CritBitTree.inc. Fixes #7990. | data-man | 2018-06-07 | 1 | -1/+10 |
| | |||||
* | Quote a keys for CritBitTree $ impl. Fixes #7987 | data-man | 2018-06-07 | 1 | -4/+8 |
| | |||||
* | Merge pull request #7806 from survivorm/feature/times_mutators | Andreas Rumpf | 2018-06-07 | 1 | -37/+22 |
|\ | | | | | Feature/times mutators | ||||
| * | [change] Replace mutators with their more generic versions | Michael Voronin | 2018-06-06 | 1 | -37/+22 |
| | | |||||
* | | Fix one more place. | cheatfate | 2018-06-07 | 1 | -1/+1 |
| | | |||||
* | | Fix fromSockAddrAux() to handle IPv6 addresses properly. | cheatfate | 2018-06-07 | 1 | -9/+16 |
| | | |||||
* | | Merge pull request #7822 from data-man/fix_2753 | Andreas Rumpf | 2018-06-07 | 1 | -1/+1 |
|\ \ | | | | | | | Fixes #2753 | ||||
| * \ | Merge branch 'devel' of https://github.com/nim-lang/Nim into fix_2753 | data-man | 2018-05-19 | 8 | -522/+733 |
| |\ \ | |||||
| * | | | Fixes #2753 | data-man | 2018-05-14 | 1 | -1/+1 |
| | | | | |||||
* | | | | Rip out the `try` transformation in the async macro. | Dominik Picheta | 2018-06-06 | 1 | -105/+6 |
| | | | | |||||
* | | | | Merge pull request #7907 from GULPF/lexer-unicode-fix | Andreas Rumpf | 2018-06-06 | 1 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | Lexer fix for multi byte characters | ||||
| * | | | | Multi byte characters should not be treated as part of an operator | Oscar Nihlgård | 2018-06-03 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Merge pull request #7966 from hlaaftana/patch-4 | Andreas Rumpf | 2018-06-06 | 1 | -1/+1 |
|\ \ \ \ \ | | | | | | | | | | | | | Fix GC_getStatistics calling itself GC_disableMarkAndSweep in JS (again) | ||||
| * | | | | | Fix GC_getStatistics calling itself GC_disableMarkAndSweep in JS (again) | hlaaf | 2018-06-06 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Allow `%` overloading in `%*` macro in json (again) | hlaaf | 2018-06-06 | 1 | -4/+4 |
|/ / / / / | |||||
* | | | | | Merge pull request #7770 from yglukhov/yield-in-try | Andreas Rumpf | 2018-06-05 | 2 | -0/+7 |
|\ \ \ \ \ | | | | | | | | | | | | | Yield in try | ||||
| * \ \ \ \ | Merge branch 'devel' into yield-in-try | Yuriy Glukhov | 2018-05-15 | 6 | -6/+21 |
| |\ \ \ \ \ | |||||
| * | | | | | | Yield in try | Yuriy Glukhov | 2018-05-09 | 2 | -0/+7 |
| | | | | | | | |||||
* | | | | | | | Fix typo: PRCE -> PCRE | Kaushal Modi | 2018-06-05 | 1 | -3/+3 |
| | | | | | | | |||||
* | | | | | | | Rename tgamma to gamma (#7929) | Koki Fushimi | 2018-06-05 | 1 | -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) | skilchen | 2018-06-05 | 1 | -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) | skilchen | 2018-06-04 | 1 | -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 Fushimi | 2018-06-04 | 1 | -1/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add product proc * Update changelog | ||||
* | | | | | | Use higher time resolution when available in os.nim (#7709) | Oscar Nihlgård | 2018-06-04 | 3 | -19/+45 |
| | | | | | | |||||
* | | | | | | db_mysql.nim: Work around string nil comparison logic | Andreas Rumpf | 2018-06-04 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Expose GC_setStackBottom (#7885) | Yuriy Glukhov | 2018-06-04 | 5 | -13/+17 |
| | | | | | | |||||
* | | | | | | Update sqlite example to use empty strings. | Varriount | 2018-06-03 | 1 | -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 ↵ | skilchen | 2018-06-01 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | (#7928) | ||||
* | | | | | | fix strformat zeropadding for floats (#7934) | skilchen | 2018-06-01 | 1 | -2/+20 |
| | | | | | | |||||
* | | | | | | Added $ for openarrays. Fixes #7940. | data-man | 2018-06-01 | 1 | -0/+8 |
| | | | | | | |||||
* | | | | | | Update example (#7788) | Federico Ceratto | 2018-06-01 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Add imaginary unit. (#7922) | Koki Fushimi | 2018-06-01 | 1 | -0/+4 |
| | | | | | | |||||
* | | | | | | Support `div`, `mod`, floorDiv and floorMod for Rationals (#7918) | Koki Fushimi | 2018-06-01 | 1 | -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) | Torro | 2018-06-01 | 1 | -0/+2 |
| | | | | | | |||||
* | | | | | | Merge branch 'feature/times_fixup' of https://github.com/survivorm/Nim into ↵ | Dominik Picheta | 2018-05-31 | 1 | -218/+503 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | survivorm-feature/times_fixup | ||||
| * | | | | | | [add] Add fraction of seconds to parse/format utils | Michael Voronin | 2018-05-31 | 1 | -60/+75 |
| | | | | | | | |||||
| * | | | | | | [add] add between function to calculate TI between two datetimes | Michael Voronin | 2018-05-31 | 1 | -0/+103 |
| | | | | | | | |||||
| * | | | | | | [add] Add procs for TimeInterval stringify | Michael Voronin | 2018-05-31 | 1 | -1/+34 |
| | | | | | | | |||||
| * | | | | | | [add+change] Added toDurationParts proc to convert Duration to ↵ | Michael Voronin | 2018-05-31 | 1 | -22/+53 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | array[FixedTimeUnit, int64] of it's human-readable parts, use it in `$Duration` | ||||
| * | | | | | | [doc] Standardize deprecation warnings | Michael Voronin | 2018-05-10 | 1 | -8/+7 |
| | | | | | | | |||||
| * | | | | | | [add] Add some wrappers | Michael Voronin | 2018-05-10 | 1 | -0/+20 |
| | | | | | | | |||||
| * | | | | | | [refactoring] Rearrange functions for better readability/usage | Michael Voronin | 2018-05-10 | 1 | -139/+155 |
| | | | | | | |