REBOL3 tracker
  0.9.12 beta
Ticket #0001079 User: anonymous

Project:



rss
TypeWish Statusreviewed Date10-Jul-2009 18:48
Versionalpha 70 CategoryParse Submitted byBrianH
PlatformAll Severityminor Prioritynormal

Summary Double quote escaping for simple PARSE
Description Simple PARSE almost implements CSV-style quote handling, but is missing the "" method to do embedded quotes. If we add that we could handle more CSV-style data. The delimiters and quotes otherwise work just fine.

Just follow the RFC: http://tools.ietf.org/html/rfc4180

This ticket is derived from #1042.
Example code
; Current behavior
>> parse {"hello""world^/",a} "," 
== ["hello" "world^/" "a"] 
>> length? parse {"hello""world^/",a} "," 
== 3 

; Proposed behavior according to RFC 4180
>> parse {"hello""world^/",a} "," 
== [{hello"world^/} "a"] 
>> length? parse {"hello""world^/",a} "," 
== 2

Assigned ton/a Fixed in- Last Update14-Jul-2009 23:45


Comments

Date User Field Action Change
14-Jul-2009 23:45 carl Status Modified submitted => reviewed
10-Jul-2009 18:54 BrianH Description Modified -
10-Jul-2009 18:54 BrianH Code Modified -
10-Jul-2009 18:48 BrianH Ticket Added -