Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | added doc examples for formatFloat (#6704) | Fabian Keller | 2017-11-07 | 1 | -0/+10 |
| | |||||
* | Adds optional maxsplit parameter to splitWhitespace (#6503) (#6690) | olwi | 2017-11-06 | 1 | -15/+52 |
| | | | | | * Adds optional maxsplit parameter to splitWhitespace() (#6503) * Adds an example to splitWhitespace doc comment. Minor fixes to several doc comments | ||||
* | make tests green again | Araq | 2017-11-01 | 1 | -1/+2 |
| | |||||
* | Update `removeSuffix` implementations to match `removePrefix` (#6636) | Bo Lingen | 2017-10-30 | 1 | -27/+27 |
| | |||||
* | Merge branch 'devel' of github.com:nim-lang/Nim into devel | Andreas Rumpf | 2017-10-29 | 1 | -0/+11 |
|\ | |||||
| * | fixes #6589 (#6590) | Fabian Keller | 2017-10-29 | 1 | -0/+11 |
| | | |||||
* | | more replacements for the deprecated '<' | Andreas Rumpf | 2017-10-29 | 1 | -3/+3 |
|/ | |||||
* | add `strutils.removePrefix` proc (#6473) | Bo Lingen | 2017-10-28 | 1 | -2/+38 |
| | |||||
* | strutils.find enhancements (#6582) | Dmitry Atamanov | 2017-10-28 | 1 | -27/+49 |
| | |||||
* | isAlphaNumberic and isDigit improvement + tests (#6579) | Viktor Marosvary | 2017-10-24 | 1 | -2/+4 |
| | | | if we encounter a character that does not satisfy the proc, we return immediately, without continuing to loop over the rest of the chars in the string. | ||||
* | Fix `removeSuffix` rst code blocks | Silvio | 2017-10-23 | 1 | -0/+3 |
| | | | Add newline before `code-block` for `removeSuffix` | ||||
* | Merge pull request #6051 from couven92/alignLeft | Dominik Picheta | 2017-10-22 | 1 | -2/+29 |
|\ | | | | | Add left-aligning string proc to strutils | ||||
| * | Add safeties for alignLeft | Fredrik Høisæther Rasch | 2017-07-04 | 1 | -2/+2 |
| | | |||||
| * | Augment align proc with alignLeft proc | Fredrik Høisæther Rasch | 2017-07-04 | 1 | -2/+29 |
| | | |||||
* | | breaking change: arrays of char do not convert to cstring; ptr to array of ↵ | Andreas Rumpf | 2017-10-10 | 1 | -2/+8 |
| | | | | | | | | char does | ||||
* | | minor breacking change: in string formats '' the '1' is now interpreted as a ↵ | Andreas Rumpf | 2017-10-06 | 1 | -5/+21 |
| | | | | | | | | number, not as an identifier. This is more consistent with the rest of the mini language and allows '12'. | ||||
* | | in prepration for the upcoming different integer inference rules | Andreas Rumpf | 2017-09-16 | 1 | -1/+1 |
| | | |||||
* | | Fix wrong result of countLines() (#6371) | Simon Krauter | 2017-09-15 | 1 | -1/+2 |
| | | |||||
* | | Added Multi-Replacement proc for strings (#6193) | Fredrik Høisæther Rasch | 2017-08-07 | 1 | -0/+35 |
|/ | |||||
* | Ascii character code 127 (DEL) is not printable and must be quoted. (#5984) | Markus F.X.J. Oberhumer | 2017-06-15 | 1 | -2/+2 |
| | | | This is a follow-up to #5823. | ||||
* | Extend documenation of formatFloat() (#5799) | Simon Krauter | 2017-05-13 | 1 | -0/+2 |
| | | | Added line: "If ``precision == 0``, it tries to format it nicely." (copied from formatBiggestFloat()) | ||||
* | strutils.nim: make removeSuffix robust on empty strings | Andreas Rumpf | 2017-03-18 | 1 | -9/+2 |
| | |||||
* | Make countLines() the same as len(splitLines(s)) (#5470) | Simon Krauter | 2017-03-03 | 1 | -8/+4 |
| | | | | | The result of countLines() is now increased by 1 compared to the old version. Fixes #5460. | ||||
* | better docs for strutils.escape | Araq | 2017-02-26 | 1 | -0/+1 |
| | |||||
* | Make toHex work for uints (#5423) | Dennis Felsing | 2017-02-24 | 1 | -1/+1 |
| | |||||
* | Added BiggestUInt (#5378) | flyx | 2017-02-13 | 1 | -1/+1 |
| | |||||
* | Improve & optimize strutils 'find' procs (#5196) | Parashurama | 2017-01-11 | 1 | -15/+49 |
| | | | | | * add 'last' argument to 'find' procs in strutils * add 'rfind' proc for looking up set[char] in strutils * use optimised C function 'memchr' when available | ||||
* | Change error handling in split to use doAssert so it is not compiled out ↵ | Chris Heller | 2016-12-21 | 1 | -1/+1 |
| | | | | when running tests | ||||
* | Change error handling to use assert as per Araq's comment | Chris Heller | 2016-12-21 | 1 | -4/+1 |
| | |||||
* | Guard against calling split with an empty string as a separator. Fixes #5119 | Chris Heller | 2016-12-21 | 1 | -0/+5 |
| | |||||
* | better memory tracking | Andreas Rumpf | 2016-11-22 | 1 | -0/+2 |
| | |||||
* | [enh] isUpperAscii*, isLowerAscii* speedup execution by stopping | Zajcev Evgeny | 2016-11-07 | 1 | -4/+6 |
| | | | | iteration as soon as possible | ||||
* | stdlib and compiler don't use .immediate anymore | Andreas Rumpf | 2016-07-29 | 1 | -1/+1 |
| | |||||
* | added strutils.splitWhitespace | Andreas Rumpf | 2016-07-06 | 1 | -15/+23 |
| | |||||
* | 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 |