summary refs log tree commit diff stats
path: root/lib/pure/strutils.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fix word wrappingJjp1372019-10-221-5/+6
|
* Fix many broken linksJjp1372019-10-221-25/+25
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* Revert "Fixes #12187 (#12321)" (#12447)Andreas Rumpf2019-10-181-1/+1
| | | This reverts commit 00c31e87660d9db813871f5aa23661bf6b9bbdcb.
* Fixes #12187 (#12321)Clyybber2019-10-081-1/+1
| | | | | | * Fixes #12187 * Point to fork of compactdict Since the original repo is now archived / read-only
* Fixed sizeOf to sizeof (#12347)Ridho Pratama2019-10-031-2/+2
|
* [backport] run nimpretty on string stuffnarimiran2019-09-301-90/+108
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-5/+5
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-14/+14
| | | | --styleCheck:error
* [bugfix] fix `delete` in strutils and sequtils (#11535)Miran2019-06-201-1/+4
|
* [other] documentation: deprecation comments are now auto-generatednarimiran2019-06-191-18/+0
|
* Disambiguate idents now that all 3 rfind's are included in the RTL.Charles Blake2019-06-151-3/+3
|
* Add missing ,int to type signature in doc comment references.Charles Blake2019-06-131-3/+3
|
* Attempt to close https://github.com/nim-lang/Nim/issues/11430Charles Blake2019-06-121-16/+36
|
* fixes #11369 (#11381)Andreas Rumpf2019-06-021-10/+10
|
* Implement generic fromBin|Oct|Hex in strutils (#11107)Alvydas Vitkauskas2019-05-231-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | * make parsutils.parseBin generic and improve runnableExamples * reimplement parseBin/Oct/Hex and improve runnableExamples * update changelog.md file with parseBin/Oct/Hex and fix a typo * delete template and code parseBin|Oct|Hex separately * split definitions between int and other SomeInteger * make parseBin|Oct|Hex generic and remove rtl pragmas * remove pragma inline from praseBin|Oct|Hex * implement families of parse(Bin|Oct|Hex)Int[xx] * fix typo [skip ci] * implement generic fromBin|Oct|Hex * make runnableExamples shorter
* strutils.nim: fixes the indentation of formatEngAraq2019-04-101-5/+5
|
* Fix dead sequtils link (#10960) [ci skip]MrZoraman2019-04-041-1/+1
|
* strutils: document `parseEnum` [ci skip]narimiran2019-02-251-0/+23
|
* fixes a critical strutils bug [backport]Araq2019-02-191-1/+1
|
* fixes #6832Araq2019-02-191-5/+2
|
* documentation: remove author field [ci skip]narimiran2019-01-171-2/+0
|
* better docs: strutilsnarimiran2019-01-161-768/+1265
|
* strutils: minor code cleanupAraq2018-12-191-1/+0
|
* removes deprecated T/P typesAraq2018-11-161-2/+0
|
* better implementation for wrapWordsAraq2018-11-081-1/+2
|
* stripLineEnd aka chomp (#9623)Timothee Cour2018-11-051-0/+1
|
* Add 'dedent' to documentation index (#9615)Federico Ceratto2018-11-041-0/+1
|
* changelog entryArne Döring2018-10-311-1/+1
|
* fix typoArne Döring2018-10-311-1/+1
|
* fixes #9557Arne Döring2018-10-301-32/+34
|
* Fixes #9525 (#9526)Neelesh Chandola2018-10-281-1/+1
|
* Some documentation added to strutils (#9379)eqperes2018-10-161-2/+102
| | | | | | | | | | | | | | | | * wip documentation strutils * some runnableExamples in strutils * assert -> doAssert * corrected doc for abbrev; some more runnable examples * runnableExamples for join * fix c&p error * corrections
* math.round is not needed in strutils (#9383)skilchen2018-10-161-5/+4
|
* Add strip() example (#8002)Federico Ceratto2018-10-141-0/+2
|
* struils: don't use the deprecated accumulateResultAndreas Rumpf2018-10-141-8/+12
|
* added new editdistance stdlib module, deprecated strutils.editDistance, refs ↵Andreas Rumpf2018-10-141-1/+4
| | | | #6301
* strutils/unicode: deprecate isLower and friends operating on complete ↵Andreas Rumpf2018-10-141-45/+12
| | | | strings; fixes #7963 properly
* add strutils.stripLineEnd (#9346)Timothee Cour2018-10-131-0/+23
|
* Proposed solution for issue #8919 (#9280)eqperes2018-10-121-0/+2
| | | | | | * Proposed solution for issue #8919 * count sub/subs must be non-empty
* fixes #8911Andreas Rumpf2018-09-161-7/+7
|
* Fix too broad generic match for toHex (#8889)LemonBoy2018-09-051-1/+1
| | | Fixes #8865
* strutils: don't deprecate escape/unescape, too much code uses itAraq2018-08-311-6/+2
|
* Merge branch 'devel' into araq-miscAraq2018-08-131-11/+20
|\
| * Fixed 7478: splitLines keepEol option (#8621)Iván Montes2018-08-131-12/+21
| |
* | fixes more nil string bugsAraq2018-08-081-4/+6
| |
* | strutils: minor code cleanupAraq2018-08-081-4/+1
|/
* Testament should run tests with no action (#8232)genotrance2018-07-081-3/+6
| | | | | | * Testament should run tests with no action * Fix strutils tests for JS
* Workaround VM bug in strutilsDominik Picheta2018-06-171-2/+3
|
* Exports unicode.toUpper/toLower in strutils module.Dominik Picheta2018-06-171-0/+3
|
* Add parse bin int, fixes #8018 (#8020)Vindaar2018-06-131-39/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clarify `parseHexInt`, `parseOctInt` docstring and exception msgs * add `parseBinInt` based on `parseutil.parseBin` implementation Adds a `parseBinInt`, which parses a binary integer string and returns it as an integer. This is based on the implementation of `parseutil.parseBin`, removing the unnecessary parts. * add tests for all `parse(Hex|Oct|Bin)Int` procs * replace `parse*Int` proc impls by call to parseutil procs Replaces the `parse(Hex|Oct|Bin)Int` procedure implementation by calls to the `parseutil` procs, which receive a mutable argument. Has the main advantage that the empty string as well as a "prefix only" string, e.g. "0x" counts as an invalid integer. Also moves the `parseOctInt` proc further up in the file so that all `parse` procs are below one another. * replace `var L` by `let L` in `parse` procs There's no reason for the usage of `var` here. * add `maxLen` optional arg for `parseutil.parse(Oct|Bin)` Plus small change to test cases. * update changelog about `parse*Int` procs * fix `rejectParse` template in `tstrutils` * make sure only `s.len` chars are parsed, if `maxLen+start` > s.len Fixes a previous bug in `parseHex` (and now affected `parseOct` and `parseBin`), which allowed to set `start + maxLen` to be larger than the strings length. This resulted in an out of bounds access. * move `parse*Int` proc change to breaking changes, add double `