[fpc-pascal] Re: SDFDataset users!?
LacaK
lacak at zoznam.sk
Tue Sep 25 08:28:36 CEST 2012
AS I understand, there are in sdfdata.pp:
TFixedFormatDataSet - for SDF = "(*S*tandard *D*ata *F*ormat) A simple
file format that uses fixed length fields."
TSdfDataSet - for variable field length, where fields are delimited by
Delimiter (and probably quoted) ... we can call it "CSV" and here we can
follow http://tools.ietf.org/html/rfc4180 (with exception, that field
delimiter can be user defined - .other than comma)
It will be good also document in begining of sdfdata.pp what standard is
followed ;-)
L.
> On 24-9-2012 18:43, Michael Van Canneyt wrote:
>
>> On Mon, 24 Sep 2012, Reinier Olislagers wrote:
>>
>>
>>> On 24-9-2012 17:22,
>>> michael.vancanneyt-0Is9KJ9Sb0A-XMD5yJDbdMReXY1tMh2IBg at public.gmane.org
>>> wrote:
>>>
>>>> On Mon, 24 Sep 2012, Reinier Olislagers wrote:
>>>>
>
>
>>> Finally, I'll post on the forum that sdf compatibility is not one of the
>>> goals of sdfdataset.
>>>
>>> Is there some defined on-disk format that sdfdataset should be following?
>>>
>> As I understood it, it is either fixed length or CSV. CSV as in
>> http://tools.ietf.org/html/rfc4180
>>
>
>
> People can only go by what they see (they can't read your mind when you
> committed sdfdataset).
> There is:
> - the unit name ("sdfdataset")
> - the comments
> - the code
> - the output
> All of this makes it in my opinion more likely to be SDF than CSV.
>
> CSV is not SDF.
> See the test results from the Delphi test I posted to the list earlier.
> For a description of what SDF is (based on Delphi help as well as the
> tests), see
> http://wiki.lazarus.freepascal.org/SDF
>
> If you understand it is CSV, why not document it, even if only in a readme:
>
> In contradiction to what its name may apply, Sdfdataset reads and writes
> CSV data according to RFC4180, not the Delphi SDF format.
>
> PS: I'll leave writing a test set to test against RFC4180 for people who
> care.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120925/f752605f/attachment.html>
More information about the fpc-pascal
mailing list