summary refs log tree commit diff stats
path: root/lib/pure/parseutils.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fix parseutils.parseBiggestInt regression (#10348)Oscar Nihlgård2019-01-181-2/+13
|
* better docs: parseutilsThomas T. Jarløv2019-01-181-35/+180
|
* Remove long deprecated stuff (#10332)Miran2019-01-181-12/+0
|
* parseutils.nim: help the codegen produce better codeAraq2019-01-161-11/+12
|
* Improve exception usage in parseutils (#10284)Oscar Nihlgård2019-01-151-24/+32
|
* Update parseutils.nimTimothee Cour2018-12-051-2/+2
|
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-1/+1
|
* parsutils: minor doc improvementsAndreas Rumpf2018-10-241-2/+2
|
* Add parse bin int, fixes #8018 (#8020)Vindaar2018-06-131-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 `
* Fixes for parseUntil when until.len == 0 (or nil)data-man2018-05-251-0/+3
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-2/+0
|
* parseutils does not depend on the zero terminator anymoreAndreas Rumpf2018-04-291-53/+54
|
* remove dead code elimination option (#7669)Jacek Sieka2018-04-231-1/+1
|
* Add a more number parsers to the scanf macro (#6985)Dmitry Atamanov2018-01-051-0/+17
|
* added parseutils.parseSaturatedNaturalAndreas Rumpf2017-11-191-4/+56
|
* Add link to streams moduleFederico Ceratto2017-10-211-0/+2
|
* Add space to fix RST in captureBetween docs (#5769)Matt Riggott2017-05-041-1/+1
|
* Added BiggestUInt (#5378)flyx2017-02-131-12/+12
|
* added strscans stdlib moduleAraq2016-05-101-0/+16
|
* split too long linesAraq2016-05-101-5/+9
|
* Remove dead codeAnatoly Galiulin2016-03-311-11/+1
|
* Add parseUInt and parseBiggestUInt functions to stdlib (parseutils, strutils)Anatoly Galiulin2016-03-301-0/+51
|
* fixes strutils.unescape; refs #3634Andreas Rumpf2016-01-171-2/+5
|
* fixes #2909Araq2015-06-151-16/+16
|
* Turn some test outputs into actual testsOleh Prypin2015-04-211-3/+5
|
* Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+3
|
* Fix typosFederico Ceratto2015-02-151-1/+1
|
* Fix typosFederico Ceratto2015-02-151-1/+1
|
* fixes #2041Araq2015-01-311-2/+2
|
* bugfix: don't overwrite the number value in case of a parsing errorAraq2015-01-271-2/+3
|
* got rid of old code that used to be required for bootstrappingAraq2014-12-081-90/+5
|
* Nimrod renamed to NimAraq2014-08-281-2/+2
|
* big renameAraq2014-08-271-5/+7
|
* renamefestAraq2014-08-231-3/+3
|
* parseBiggestFloat is now builtinAraq2014-07-161-82/+84
|
* Fixed parsing of float literals.Reimer Behrends2014-05-231-44/+50
| | | | | | | | | Float literals were not parsed properly when their fractional part exceeded 53 significant bits. This affected in particular math.PI and math.E. Rather than reinventing the wheel, this patch reuses C's strtod() implementation, which already does the heavy lifting with respect to correctness, though some caution is necessary to keep float parsing locale-independent.
* 'nil' as a statement is deprecated, use an empty 'discard' insteadAraq2014-01-191-1/+1
|
* case consistency part 4Araq2013-12-271-7/+7
|
* case consistency part 1Araq2013-12-271-2/+2
|
* Explains parseHex initialization quirk.Grzegorz Adam Hankiewicz2013-07-161-2/+26
|
* made parseBiggestFloat faster for large exponentsAraq2013-07-011-3/+12
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* The httpserver module now supports POST requests. Fix for captureBetween in ↵dom962012-05-061-2/+2
| | | | the parseutils module.
* added system.setControlCHook, system.writeStackTraceAraq2012-02-191-1/+2
|
* bugfix: semfold supports merging of '&'Araq2012-02-191-1/+5
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* Added ftpclient module. Fixed docs in sockets module. Added dll tests to ↵dom962011-11-041-0/+7
| | | | test suite.
* bugfix: new GCC version requires -ldl to come after object filesAraq2011-11-031-2/+22
|
* compilation cache: mostly working; generics not yetAraq2011-10-251-28/+28
|
* bugfix: $ escaping in interpolatedFragmentsAraq2011-09-261-6/+12
|