<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
AS I understand, there are in sdfdata.pp:<br>
<br>
TFixedFormatDataSet - for SDF = "(<b>S</b>tandard <b>D</b>ata <b>F</b>ormat)
A simple file format that uses fixed length fields."<br>
<br>
TSdfDataSet - for variable field length, where fields are delimited by
Delimiter (and probably quoted) ... we can call it "CSV" and here we
can follow <a class="moz-txt-link-freetext" href="http://tools.ietf.org/html/rfc4180">http://tools.ietf.org/html/rfc4180</a> (with exception, that
field delimiter can be user defined - .other than comma)<br>
<br>
It will be good also document in begining of sdfdata.pp what standard
is followed ;-) <br>
L.<br>
<br>
<blockquote cite="mid:50614070.5090108@gmail.com" type="cite">
<pre wrap="">On 24-9-2012 18:43, Michael Van Canneyt wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
On Mon, 24 Sep 2012, Reinier Olislagers wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 24-9-2012 17:22,
<a class="moz-txt-link-abbreviated" href="mailto:michael.vancanneyt-0Is9KJ9Sb0A-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org">michael.vancanneyt-0Is9KJ9Sb0A-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org</a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Mon, 24 Sep 2012, Reinier Olislagers wrote:
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap="">As I understood it, it is either fixed length or CSV. CSV as in
<a class="moz-txt-link-freetext" href="http://tools.ietf.org/html/rfc4180">http://tools.ietf.org/html/rfc4180</a>
</pre>
</blockquote>
<pre wrap=""><!---->
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
<a class="moz-txt-link-freetext" href="http://wiki.lazarus.freepascal.org/SDF">http://wiki.lazarus.freepascal.org/SDF</a>
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 - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
<br>
</body>
</html>