summary refs log tree commit diff stats
path: root/lib/pure/strutils.nim
Commit message (Collapse)AuthorAgeFilesLines
* FIXUP: Removed +1 causing substr slicing to skip chars on first iteration of ↵ryanc-signiq2018-03-081-1/+6
| | | | while loop (#7312)
* strutils.strip: improve the documentation; fixes #7159Andreas Rumpf2018-03-051-1/+3
|
* fixes #7293Andreas Rumpf2018-03-051-3/+3
|
* Merge pull request #6517 from FedericoCeratto/hexstrDominik Picheta2018-01-261-0/+50
|\ | | | | Add string-to-hex and back conversions
| * Add string-to-hex and back conversionsFederico Ceratto2017-11-271-0/+50
| | | | | | | | Add parseHexStr and toHex and tests.
* | Improved collection-to-string behavior (#6825)Fabian Keller2017-12-141-20/+6
| |
* | Fixes #4377.Dominik Picheta2017-11-281-28/+46
| |
* | cleaned up strutils.nimAraq2017-11-281-17/+13
|/
* fixes system.runnableExamples; strutils makes use of runnableExamplesAraq2017-11-261-75/+66
|
* fixes #6589 again (#6766)Fabian Keller2017-11-171-3/+2
|
* Modified handling of zero precision in formatFloat (#6719)Fabian Keller2017-11-151-9/+12
|
* added doc examples for formatFloat (#6704)Fabian Keller2017-11-071-0/+10
|
* Adds optional maxsplit parameter to splitWhitespace (#6503) (#6690)olwi2017-11-061-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 againAraq2017-11-011-1/+2
|
* Update `removeSuffix` implementations to match `removePrefix` (#6636)Bo Lingen2017-10-301-27/+27
|
* Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2017-10-291-0/+11
|\
| * fixes #6589 (#6590)Fabian Keller2017-10-291-0/+11
| |
* | more replacements for the deprecated '<'Andreas Rumpf2017-10-291-3/+3
|/
* add `strutils.removePrefix` proc (#6473)Bo Lingen2017-10-281-2/+38
|
* strutils.find enhancements (#6582)Dmitry Atamanov2017-10-281-27/+49
|
* isAlphaNumberic and isDigit improvement + tests (#6579)Viktor Marosvary2017-10-241-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 Silvio2017-10-231-0/+3
| | | Add newline before `code-block` for `removeSuffix`
* Merge pull request #6051 from couven92/alignLeftDominik Picheta2017-10-221-2/+29
|\ | | | | Add left-aligning string proc to strutils
| * Add safeties for alignLeftFredrik Høisæther Rasch2017-07-041-2/+2
| |
| * Augment align proc with alignLeft procFredrik Høisæther Rasch2017-07-041-2/+29
| |
* | breaking change: arrays of char do not convert to cstring; ptr to array of ↵Andreas Rumpf2017-10-101-2/+8
| | | | | | | | char does
* | minor breacking change: in string formats '' the '1' is now interpreted as a ↵Andreas Rumpf2017-10-061-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 rulesAndreas Rumpf2017-09-161-1/+1
| |
* | Fix wrong result of countLines() (#6371)Simon Krauter2017-09-151-1/+2
| |
* | Added Multi-Replacement proc for strings (#6193)Fredrik Høisæther Rasch2017-08-071-0/+35
|/
* Ascii character code 127 (DEL) is not printable and must be quoted. (#5984)Markus F.X.J. Oberhumer2017-06-151-2/+2
| | | This is a follow-up to #5823.
* Extend documenation of formatFloat() (#5799)Simon Krauter2017-05-131-0/+2
| | | Added line: "If ``precision == 0``, it tries to format it nicely." (copied from formatBiggestFloat())
* strutils.nim: make removeSuffix robust on empty stringsAndreas Rumpf2017-03-181-9/+2
|
* Make countLines() the same as len(splitLines(s)) (#5470)Simon Krauter2017-03-031-8/+4
| | | | | The result of countLines() is now increased by 1 compared to the old version. Fixes #5460.
* better docs for strutils.escapeAraq2017-02-261-0/+1
|
* Make toHex work for uints (#5423)Dennis Felsing2017-02-241-1/+1
|
* Added BiggestUInt (#5378)flyx2017-02-131-1/+1
|
* Improve & optimize strutils 'find' procs (#5196)Parashurama2017-01-111-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 Heller2016-12-211-1/+1
| | | | when running tests
* Change error handling to use assert as per Araq's commentChris Heller2016-12-211-4/+1
|
* Guard against calling split with an empty string as a separator. Fixes #5119Chris Heller2016-12-211-0/+5
|
* better memory trackingAndreas Rumpf2016-11-221-0/+2
|
* [enh] isUpperAscii*, isLowerAscii* speedup execution by stoppingZajcev Evgeny2016-11-071-4/+6
| | | | iteration as soon as possible
* stdlib and compiler don't use .immediate anymoreAndreas Rumpf2016-07-291-1/+1
|
* added strutils.splitWhitespaceAndreas Rumpf2016-07-061-15/+23
|
* 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
| |
* | Add useful unicode procs for string manipulationJoey Payne2016-07-011-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.Euan2016-06-241-2/+7
|