Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #4361 from jyapayne/fix_split | Andreas Rumpf | 2016-07-02 | 1 | -70/+88 |
|\ | | | | | Fix #4305: Make split proc for set[char] consistent | ||||
| * | Add transition define for old split behavior | Joey Payne | 2016-07-01 | 1 | -1/+26 |
| | | |||||
| * | Fix #4305: Make split proc for set[char] consistent | Joey Payne | 2016-07-01 | 1 | -70/+63 |
| | | |||||
* | | Add useful unicode procs for string manipulation | Joey Payne | 2016-07-01 | 1 | -62/+193 |
|/ | | | | | | | Added: isUpper, isLower, isAlpha, isWhiteSpace, toUpper, toLower, and capitalize Renamed strutils procs that are similar to avoid conflicts | ||||
* | Fixing isNilOrWhitespace to handle empty/nil. | Euan | 2016-06-24 | 1 | -2/+7 |
| | |||||
* | Fixing isNilOrWhitespace for empty/nil strings. | Euan | 2016-06-24 | 1 | -1/+1 |
| | | | | | `isSpace` returns false for an empty string, which is the opposite of this method. | ||||
* | Adding isNilOrEmpty and isNilOrWhitespace | Euan | 2016-06-24 | 1 | -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. | ||||
* | moved expandTabs to strmisc | Andreas Rumpf | 2016-06-15 | 1 | -40/+0 |
| | |||||
* | Move partition and rpartition to new strmisc module | Joey Payne | 2016-06-13 | 1 | -40/+0 |
| | | | | | | 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 manipulation | Joey Payne | 2016-06-13 | 1 | -5/+301 |
| | | | | | Add center, isTitle, title, partition, rpartition, rsplit, swapCase, translate, and expandTabs | ||||
* | Added inline pragmas. | A. S. Budden | 2016-06-06 | 1 | -2/+2 |
| | |||||
* | Added startsWith/endsWith implementations for character prefix/suffix (fixes ↵ | A. S. Budden | 2016-06-06 | 1 | -0/+16 |
| | | | | #4252). | ||||
* | Merge pull request #4261 from abudden/4197-formatEng | Andreas Rumpf | 2016-06-02 | 1 | -0/+165 |
|\ | | | | | Implemented string formatting functions for engineering format | ||||
| * | Implemented string formatting functions for engineering format (fixes #4197). | A. S. Budden | 2016-06-02 | 1 | -0/+165 |
| | | |||||
* | | Added missing noSideEffect pragma | A. S. Budden | 2016-06-02 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #4250 from abudden/4198-formatSize | Andreas Rumpf | 2016-06-02 | 1 | -21/+79 |
|\ | | | | | Reimplementation of formatSize to return a more meaningful value | ||||
| * | Modified trimZeros to modify the passed value. | A. S. Budden | 2016-06-01 | 1 | -15/+14 |
| | | |||||
| * | Moved zero trimming into a separate function (code review comment) | A. S. Budden | 2016-06-01 | 1 | -27/+21 |
| | | |||||
| * | Reimplementation of formatSize to return a more meaningful value (fixes #4198). | A. S. Budden | 2016-06-01 | 1 | -24/+89 |
| | | |||||
* | | make split with strings as separator faster | Andreas Rumpf | 2016-06-01 | 1 | -1/+6 |
| | | |||||
* | | adds strutils.toHex variant that knows about the used integer size | Andreas Rumpf | 2016-06-01 | 1 | -0/+4 |
|/ | |||||
* | Merge branch 'maxsplit' of https://github.com/mjoud/Nim into mjoud-maxsplit | Andreas Rumpf | 2016-05-28 | 1 | -10/+29 |
|\ | |||||
| * | modified strutils.split | Magnus Jöud | 2015-10-14 | 1 | -9/+6 |
| | | |||||
| * | added tests for strutils.split | Magnus Jöud | 2015-10-14 | 1 | -0/+6 |
| | | |||||
| * | added maxsplit argument to strutils.split | Magnus Jöud | 2015-10-14 | 1 | -10/+25 |
| | | |||||
* | | minor whitespace change | Araq | 2016-05-10 | 1 | -1/+1 |
| | | |||||
* | | Fixes #4037 | Dominik Picheta | 2016-04-04 | 1 | -27/+63 |
| | | |||||
* | | Add parseUInt and parseBiggestUInt functions to stdlib (parseutils, strutils) | Anatoly Galiulin | 2016-03-30 | 1 | -0/+18 |
| | | |||||
* | | Make strutils.join with with generic openarrays | def | 2016-03-06 | 1 | -11/+15 |
| | | |||||
* | | fixes strutils.unescape; refs #3634 | Andreas Rumpf | 2016-01-17 | 1 | -5/+5 |
| | | |||||
* | | fixed float formatting for js | Yuriy Glukhov | 2015-11-26 | 1 | -24/+39 |
| | | |||||
* | | Fix loop index bug in scan for a[s] in b[s..s+len2-1]. | Charles Blake | 2015-11-19 | 1 | -1/+1 |
| | | | | | | | | | | | | a, b must both be indexed starting from s after the common prefix "strip" phase. This resolves issue 3477: https://github.com/nim-lang/Nim/issues/3477 | ||||
* | | add {.pop.} for {.push debugger:off.} to balance push/pop | JamesP | 2015-10-14 | 1 | -1/+3 |
|/ | |||||
* | Made strutils string test procs less redundant. | Joey Payne | 2015-10-10 | 1 | -49/+49 |
| | |||||
* | Added tests for string test procs. | Joey Payne | 2015-10-10 | 1 | -0/+52 |
| | |||||
* | Changed alphanumeric check to "or" instead of "and". | Joey Payne | 2015-10-10 | 1 | -1/+1 |
| | |||||
* | Added useful procs to strutils for string testing. | Joey Payne | 2015-10-09 | 1 | -0/+126 |
| | | | | | | | | | | | Added procs: isAlpha isAlphaNumeric isDigit isSpace isUpper isLower | ||||
* | strutils: wrap too long lines | Araq | 2015-10-06 | 1 | -8/+14 |
| | |||||
* | Implement strutils.indent | Dominik Picheta | 2015-09-11 | 1 | -0/+18 |
| | |||||
* | formatFloat takes an optional decimalSep parameter | Araq | 2015-09-01 | 1 | -10/+17 |
| | |||||
* | Add extern pragma | Zach Aysan | 2015-07-21 | 1 | -3/+5 |
| | |||||
* | Add docs | Zach Aysan | 2015-07-21 | 1 | -0/+27 |
| | |||||
* | Switch to removeSuffix name and modify the string in place | Zach Aysan | 2015-07-21 | 1 | -46/+27 |
| | |||||
* | Create Ruby-like chomp proc to allow for easy string ending removal | Zach Aysan | 2015-07-17 | 1 | -1/+46 |
| | |||||
* | renamed writeln to writeLine in lib | patrick dw | 2015-06-19 | 1 | -6/+6 |
| | |||||
* | lib/pure/p-t - Dropped 'T' from types | pdw | 2015-06-04 | 1 | -1/+2 |
| | |||||
* | Add arbitrary char support to the strutils proc. Issue #2626 | msmith491 | 2015-04-30 | 1 | -7/+13 |
| | |||||
* | fixes #2517 | Araq | 2015-04-25 | 1 | -1/+2 |
| | |||||
* | Turn some test outputs into actual tests | Oleh Prypin | 2015-04-21 | 1 | -3/+7 |
| | |||||
* | Don't run non-test code when defined(testing) | Oleh Prypin | 2015-04-21 | 1 | -4/+6 |
| |