RTTable does not parse commas inside quotes correcly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RTTable does not parse commas inside quotes correcly

SergeStinckwich
The following test is red, because apparently RTTable does not parse
CSV correctly (commas inside quotes should not be considered as
delimiters).
NeoCSV parse this kind of String without problems.

===========================================================
RTTabTableTest>>testCommasInsideQuotes

tab
   input:
   '2014-01-26 00:00:00+00,Boeing 737-3B7 (SF),ZK-TLC,"Airwork, NZ,
opf. Pacific Air Express",0,Honiara-Henderson International Airport
(HIR),Solomon Islands,-9.428056,160.053056,"Brisbane International
Airport, QLD (BNE/YBBN), Australia","Honiara-Henderson International
Airport (HIR/AGGH), Solomon Islands",Accident resulting in a total
loss of the plane,0101000020E6100000691B7FA2B201644091B6F1272ADB22C0,7,2014-07-18
11:46:49.32676+00,2014-07-18 11:47:01.156893+00'
   usingDelimiter: $,.
   self assert: tab numberOfColumns equals: 16

===========================================================

--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: RTTable does not parse commas inside quotes correcly

abergel
Hi Serge,

NeoCSV is indeed a more reliable option in some cases.
RTTabTable is now fixed.

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Aug 6, 2014, at 5:42 AM, Serge Stinckwich <[hidden email]> wrote:

> The following test is red, because apparently RTTable does not parse
> CSV correctly (commas inside quotes should not be considered as
> delimiters).
> NeoCSV parse this kind of String without problems.
>
> ===========================================================
> RTTabTableTest>>testCommasInsideQuotes
>
> tab
>   input:
>   '2014-01-26 00:00:00+00,Boeing 737-3B7 (SF),ZK-TLC,"Airwork, NZ,
> opf. Pacific Air Express",0,Honiara-Henderson International Airport
> (HIR),Solomon Islands,-9.428056,160.053056,"Brisbane International
> Airport, QLD (BNE/YBBN), Australia","Honiara-Henderson International
> Airport (HIR/AGGH), Solomon Islands",Accident resulting in a total
> loss of the plane,0101000020E6100000691B7FA2B201644091B6F1272ADB22C0,7,2014-07-18
> 11:46:49.32676+00,2014-07-18 11:47:01.156893+00'
>   usingDelimiter: $,.
>   self assert: tab numberOfColumns equals: 16
>
> ===========================================================
>
> --
> Serge Stinckwich
> UCBN & UMI UMMISCO 209 (IRD/UPMC)
> Every DSL ends up being Smalltalk
> http://www.doesnotunderstand.org/
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev