You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When delim=groupmark=x, treat x as delim unless input is quoted (#182)
* When delim=groupmark=`x`, treat `x` as delim
* Move groupmark checker to helper function
* Adapt tests for new `groupmark` handling
* Simplify tests
* More test cases (based on old test cases)
* Bump version
---------
Co-authored-by: Drvi <tomas.drvostep@gmail.com>
Copy file name to clipboardExpand all lines: src/Parsers.jl
+54-7Lines changed: 54 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ end
111
111
* `ignoreemptylines=false`: after parsing a value, if a newline is detected, another immediately proceeding newline will be checked for and consumed
112
112
* `stripwhitespace=nothing`: if true, leading and trailing whitespace is stripped from string fields, note that for *quoted* strings however, whitespace is preserved within quotes (but ignored before/after quote characters). To also strip *within* quotes, see `stripquoted`
113
113
* `stripquoted=false`: if true, whitespace is also stripped within quoted strings. If true, `stripwhitespace` is also set to true.
114
-
* `groupmark=nothing`: optionally specify a single-byte character denoting the number grouping mark, this allows parsing of numbers that have, e.g., thousand separators (`1,000.00`).
114
+
* `groupmark=nothing`: optionally specify a single-byte character denoting the number grouping mark, this allows parsing of numbers that have, e.g., thousand separators (`1,000.00`). When the `groupmark` is ambiguous with the `delim`, the user must quote the number if it contains group marks.
115
115
* `rounding=RoundNearest`: optionally specify a rounding mode to use when parsing. No rounding means the result will be marked with `INEXACT` code if the value is not exactly representable in the target type.
116
116
"""
117
117
struct Options
@@ -141,12 +141,49 @@ function Base.getproperty(x::Options, nm::Symbol)
0 commit comments