Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change stdlib imports to use std prefix in most examples (#17202) | Danil Yarantsev | 2021-02-28 | 1 | -1/+1 |
| | |||||
* | fix parseChar see #16240 (#16245) | Pietro Peterlongo | 2020-12-06 | 1 | -3/+14 |
| | | | | | * fix parseChar * do not introduce new double backticks | ||||
* | add support for parsing chars in `scanf` macro (#16240) | Miran | 2020-12-03 | 1 | -0/+4 |
| | |||||
* | move tests to testament (#16101) | flywind | 2020-11-24 | 1 | -43/+0 |
| | | | | | | | | | * move tests to testament * minor * fix random * disable test random | ||||
* | ORC and stdlib optimizations (#15362) | Andreas Rumpf | 2020-09-19 | 1 | -4/+12 |
| | |||||
* | init checks and 'out' parameters (#14521) | Andreas Rumpf | 2020-06-23 | 1 | -5/+11 |
| | | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog | ||||
* | parseutils: integerOutOfRangeDefect => integerOutOfRangeError (#14627) | Timothee Cour | 2020-06-09 | 1 | -7/+7 |
| | |||||
* | Error -> Defect for defects (#13908) | Jacek Sieka | 2020-04-28 | 1 | -7/+7 |
| | | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here. | ||||
* | Deprecate DCE:on (#13839) | Juan Carlos | 2020-04-02 | 1 | -3/+0 |
| | |||||
* | fixes #13605 (#13611) | Andreas Rumpf | 2020-03-09 | 1 | -4/+5 |
| | |||||
* | [backport] Make all parseutils examples auto-checking (#13238) | Kaushal Modi | 2020-01-23 | 1 | -32/+25 |
| | | | - Also fix one example's output (ikString -> ikStr, ikVar instead of ikExpr) | ||||
* | [backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ↵ | Mera | 2020-01-23 | 1 | -2/+3 |
| | | | | (#13231) [ci skip] | ||||
* | [backport] run nimpretty on parsers | narimiran | 2019-09-30 | 1 | -20/+20 |
| | |||||
* | Fix spellings (#12277) [backport] | Federico Ceratto | 2019-09-27 | 1 | -1/+1 |
| | |||||
* | Fix: remove pragma inline from parseBin|Oct|Hex (#11105) | Alvydas Vitkauskas | 2019-04-24 | 1 | -3/+3 |
| | |||||
* | Make parseutils.parseBin|Oct|Hex generic (#11067) | Alvydas Vitkauskas | 2019-04-24 | 1 | -69/+114 |
| | | | | | | * 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 | ||||
* | Fix parseutils.parseBiggestInt regression (#10348) | Oscar Nihlgård | 2019-01-18 | 1 | -2/+13 |
| | |||||
* | better docs: parseutils | Thomas T. Jarløv | 2019-01-18 | 1 | -35/+180 |
| | |||||
* | Remove long deprecated stuff (#10332) | Miran | 2019-01-18 | 1 | -12/+0 |
| | |||||
* | parseutils.nim: help the codegen produce better code | Araq | 2019-01-16 | 1 | -11/+12 |
| | |||||
* | Improve exception usage in parseutils (#10284) | Oscar Nihlgård | 2019-01-15 | 1 | -24/+32 |
| | |||||
* | Update parseutils.nim | Timothee Cour | 2018-12-05 | 1 | -2/+2 |
| | |||||
* | stdlib: documenation updates, the exception names have been changed | Andreas Rumpf | 2018-10-25 | 1 | -1/+1 |
| | |||||
* | parsutils: minor doc improvements | Andreas Rumpf | 2018-10-24 | 1 | -2/+2 |
| | |||||
* | Add parse bin int, fixes #8018 (#8020) | Vindaar | 2018-06-13 | 1 | -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-man | 2018-05-25 | 1 | -0/+3 |
| | |||||
* | remove deprecated stuff from the stdlib; introduce better deprecation warnings | Araq | 2018-05-05 | 1 | -2/+0 |
| | |||||
* | parseutils does not depend on the zero terminator anymore | Andreas Rumpf | 2018-04-29 | 1 | -53/+54 |
| | |||||
* | remove dead code elimination option (#7669) | Jacek Sieka | 2018-04-23 | 1 | -1/+1 |
| | |||||
* | Add a more number parsers to the scanf macro (#6985) | Dmitry Atamanov | 2018-01-05 | 1 | -0/+17 |
| | |||||
* | added parseutils.parseSaturatedNatural | Andreas Rumpf | 2017-11-19 | 1 | -4/+56 |
| | |||||
* | Add link to streams module | Federico Ceratto | 2017-10-21 | 1 | -0/+2 |
| | |||||
* | Add space to fix RST in captureBetween docs (#5769) | Matt Riggott | 2017-05-04 | 1 | -1/+1 |
| | |||||
* | Added BiggestUInt (#5378) | flyx | 2017-02-13 | 1 | -12/+12 |
| | |||||
* | added strscans stdlib module | Araq | 2016-05-10 | 1 | -0/+16 |
| | |||||
* | split too long lines | Araq | 2016-05-10 | 1 | -5/+9 |
| | |||||
* | Remove dead code | Anatoly Galiulin | 2016-03-31 | 1 | -11/+1 |
| | |||||
* | Add parseUInt and parseBiggestUInt functions to stdlib (parseutils, strutils) | Anatoly Galiulin | 2016-03-30 | 1 | -0/+51 |
| | |||||
* | fixes strutils.unescape; refs #3634 | Andreas Rumpf | 2016-01-17 | 1 | -2/+5 |
| | |||||
* | fixes #2909 | Araq | 2015-06-15 | 1 | -16/+16 |
| | |||||
* | Turn some test outputs into actual tests | Oleh Prypin | 2015-04-21 | 1 | -3/+5 |
| | |||||
* | Don't run non-test code when defined(testing) | Oleh Prypin | 2015-04-21 | 1 | -1/+3 |
| | |||||
* | Fix typos | Federico Ceratto | 2015-02-15 | 1 | -1/+1 |
| | |||||
* | Fix typos | Federico Ceratto | 2015-02-15 | 1 | -1/+1 |
| | |||||
* | fixes #2041 | Araq | 2015-01-31 | 1 | -2/+2 |
| | |||||
* | bugfix: don't overwrite the number value in case of a parsing error | Araq | 2015-01-27 | 1 | -2/+3 |
| | |||||
* | got rid of old code that used to be required for bootstrapping | Araq | 2014-12-08 | 1 | -90/+5 |
| | |||||
* | Nimrod renamed to Nim | Araq | 2014-08-28 | 1 | -2/+2 |
| | |||||
* | big rename | Araq | 2014-08-27 | 1 | -5/+7 |
| | |||||
* | renamefest | Araq | 2014-08-23 | 1 | -3/+3 |
| |