$80 GRAYBYTE WORDPRESS FILE MANAGER $92

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby34/share/gems/gems/csv-3.3.2/doc/csv/options/parsing/

HOME
Current File : /opt/alt/ruby34/share/gems/gems/csv-3.3.2/doc/csv/options/parsing//liberal_parsing.rdoc
====== Option +liberal_parsing+

Specifies the boolean or hash value that determines whether
CSV will attempt to parse input not conformant with RFC 4180,
such as double quotes in unquoted fields.

Default value:
  CSV::DEFAULT_OPTIONS.fetch(:liberal_parsing) # => false

For the next two examples:
  str = 'is,this "three, or four",fields'

Without +liberal_parsing+:
  # Raises CSV::MalformedCSVError (Illegal quoting in str 1.)
  CSV.parse_line(str)

With +liberal_parsing+:
  ary = CSV.parse_line(str, liberal_parsing: true)
  ary # => ["is", "this \"three", " or four\"", "fields"]

Use the +backslash_quote+ sub-option to parse values that use
a backslash to escape a double-quote character.  This
causes the parser to treat <code>\"</code> as if it were
<code>""</code>.

For the next two examples:
  str = 'Show,"Harry \"Handcuff\" Houdini, the one and only","Tampa Theater"'

With +liberal_parsing+, but without the +backslash_quote+ sub-option:
  # Incorrect interpretation of backslash; incorrectly interprets the quoted comma as a field separator.
  ary = CSV.parse_line(str, liberal_parsing: true)
  ary # => ["Show", "\"Harry \\\"Handcuff\\\" Houdini", " the one and only\"", "Tampa Theater"]
  puts ary[1] # => "Harry \"Handcuff\" Houdini

With +liberal_parsing+ and its +backslash_quote+ sub-option:
  ary = CSV.parse_line(str, liberal_parsing: { backslash_quote: true })
  ary # => ["Show", "Harry \"Handcuff\" Houdini, the one and only", "Tampa Theater"]
  puts ary[1] # => Harry "Handcuff" Houdini, the one and only


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
27 Jan 2026 4.00 PM
root / linksafe
0755
converters.rdoc
1.461 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
empty_value.rdoc
0.391 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
field_size_limit.rdoc
1.163 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
header_converters.rdoc
1.438 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
headers.rdoc
1.438 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
liberal_parsing.rdoc
1.499 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
nil_value.rdoc
0.343 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
return_headers.rdoc
0.555 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
skip_blanks.rdoc
0.766 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
skip_lines.rdoc
1.059 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
strip.rdoc
0.354 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
unconverted_fields.rdoc
0.953 KB
27 Jan 2026 4.00 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF