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
Treat a shared decimal and delimiter byte as a delimiter outside quoted fields and as a decimal inside quoted fields.
Carry the active delimiter context into numeric parsing. Preserve custom decimal behavior for single-value parsing, BigFloat, and Number across string, byte-buffer, view, and IO sources.
Fixes#185
Copy file name to clipboardExpand all lines: src/Parsers.jl
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ end
101
101
* `closequotechar='"'`: the ascii character that signals the end of a quoted field
102
102
* `escapechar='"'`: an ascii character used to "escape" a `closequotechar` within a quoted field
103
103
* `delim=','`: if `nothing`, no delimiter will be checked for; if a `Char` or `String`, a delimiter will be checked for directly after parsing a value or `closequotechar`; a newline (`\\n`), return (`\\r`), or CRLF (`"\\r\\n"`) are always considered "delimiters", in addition to EOF
104
-
* `decimal='.'`: an ascii character to be used when parsing float values that separates a decimal value
104
+
* `decimal='.'`: an ascii character to be used when parsing float values that separates a decimal value. When `decimal` matches `delim`, the character is treated as a delimiter outside quoted values and as a decimal inside quoted values.
105
105
* `trues=nothing`: if `nothing`, `Bool` parsing will only check for the string `true` or an `Integer` value of `1` as valid values for `true`; as a `Vector{String}`, each string value will be checked to indicate a valid `true` value
106
106
* `falses=nothing`: if `nothing`, `Bool` parsing will only check for the string `false` or an `Integer` value of `0` as valid values for `false`; as a `Vector{String}`, each string value will be checked to indicate a valid `false` value
107
107
* `dateformat=nothing`: if `nothing`, `Date`, `DateTime`, and `Time` parsing will use a default `Dates.DateFormat` object while parsing; a `String` or `Dates.DateFormat` object can be provided for custom format parsing
@@ -437,7 +437,7 @@ end
437
437
438
438
# condensed version of xparse that doesn't worry about quoting or delimiters; called from Parsers.parse/Parsers.tryparse
0 commit comments