Re: [Lazarus] CSV parser class

2010-02-05 Thread Vladimir Zhirov
Hans-Peter Diettrich wrote: > I want to prevent duplicate texts in the OH and wiki. The wiki can > contain an extended version, covering several topics in depth, while > IMO the OH should be more compact, with SeeAlso and Examples > references to other places. > > But you're right, the wiki can b

Re: [Lazarus] CSV parser class

2010-01-25 Thread Hans-Peter Diettrich
Vladimir Zhirov schrieb: Hans-Peter Diettrich wrote: For use with the FPDoc Editor I've started to add FCL and RTL directories to the docs/xml/ directory, but didn't add content yet. Currently I'm trying to prepare build options for offline help, but this will also take some more time. Addi

Re: [Lazarus] CSV parser class

2010-01-24 Thread Graeme Geldenhuys
Vincent Snijders wrote: > > TBH, I am glad it is in Lazarus-CCR or at least mentioned on > Lazarus-CCR, instead of lying on barko's hard disk, even though it > didn't seem to be maintained anymore. A can't agree more, and that is exactly why I want to share my changes too. I'll make a plan duri

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vladimir Zhirov
Graeme Geldenhuys wrote: > In case you were interested. Here is the documentation of the unit I > wrote. It is stand-alone, so doesn't require tiOPF at all. > > http://opensoft.homeip.net/tiopf/core/titokenlibrary/index.html > > It can be used for more than just CSV, and can handle a certain am

Re: [Lazarus] CSV parser class

2010-01-24 Thread Hans-Peter Diettrich
Vladimir Zhirov schrieb: Hans-Peter Diettrich wrote: If I'm wrong I would appreciate if someone point out my mistake. No, the D2006 extension "strictdelimiter" fixes this, and FPC has it too. Thanks, I have not known this. I've added kind of an How To topic to TStrings Great, it would be

Re: [Lazarus] CSV parser class

2010-01-24 Thread Graeme Geldenhuys
2010/1/24 Vladimir Zhirov : > > As of tiOPF CSV implementation, I'm afraid it is already too late :) In case you were interested. Here is the documentation of the unit I wrote. It is stand-alone, so doesn't require tiOPF at all. http://opensoft.homeip.net/tiopf/core/titokenlibrary/index.html I

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vladimir Zhirov
Hans-Peter Diettrich wrote: >> If I'm wrong I would appreciate if someone point out my mistake. > No, the D2006 extension "strictdelimiter" fixes this, and FPC has it too. Thanks, I have not known this. > I've added kind of an How To topic to TStrings Great, it would be very useful to look at it

Re: [Lazarus] CSV parser class

2010-01-24 Thread Hans-Peter Diettrich
Juha Manninen schrieb: Splitting can be slow. It creates and copies strings and allocates small chunks of memory. No way around that, unless you use PChars and zero terminated strings, which are slow in any further processing. There should be variations for those functions. Sometimes you wa

Re: [Lazarus] CSV parser class

2010-01-24 Thread Hans-Peter Diettrich
Vladimir Zhirov schrieb: Have you seen the built-in CSV support in TStrings? Yes, if I understand the documentation right, it can be used for basic per-line csv parsing only (using DelimitedText). It also requires to quote all characters below some code point, including spaces, that makes it im

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: One good example of this is DCPCrypt. TBH, I am glad it is in Lazarus-CCR or at least mentioned on Lazarus-CCR, instead of lying on barko's hard disk, even though it didn't seem to be maintained anymore. Vincent -- ___

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: Anyway, to get your code in the CCR, I normally email Vincent the code in private. Thought I must say, I don't really see the point of the CCR. I guess that is why you missed http://wiki.lazarus.freepascal.org/OnGuard ;-) Many of those projects need to be mainta

Re: [Lazarus] CSV parser class

2010-01-24 Thread Marco van de Voort
On Sun, Jan 24, 2010 at 03:27:50PM +0400, Vladimir Zhirov wrote: > > Have you seen the built-in CSV support in TStrings? > > Yes, if I understand the documentation right, it can be used for basic > per-line csv parsing only (using DelimitedText). It also requires to > quote all characters below so

Re: [Lazarus] CSV parser class

2010-01-24 Thread Juha Manninen
Hi, I think there is need for an OPTIMIZED code for splitting and joining. TStringList.DelimitedText is good when speed is not very important. See: http://www.mail-archive.com/fpc-pas...@lists.freepascal.org/msg18548.html I didn't look at tiOPF project's implementation so I don't know how optimiz

Re: [Lazarus] CSV parser class

2010-01-24 Thread Vladimir Zhirov
> Have you seen the built-in CSV support in TStrings? Yes, if I understand the documentation right, it can be used for basic per-line csv parsing only (using DelimitedText). It also requires to quote all characters below some code point, including spaces, that makes it impossible to read csv files

Re: [Lazarus] CSV parser class

2010-01-24 Thread Marco van de Voort
On Sun, Jan 24, 2010 at 08:41:02AM +0200, Graeme Geldenhuys wrote: > 2010/1/23 Alexander Klenin : > >> > >> Have you seen the built-in CSV support in TStrings? > > > > That's interesting. Where is it? I am unable to find it it Classes unit. > > I also didn't know about this. strictdelimiter and d

Re: [Lazarus] CSV parser class

2010-01-23 Thread Graeme Geldenhuys
2010/1/23 Alexander Klenin : >> >> Have you seen the built-in CSV support in TStrings? > > That's interesting. Where is it? I am unable to find it it Classes unit. I also didn't know about this. -- Regards, - Graeme - ___ fpGUI - a cross-platform

Re: [Lazarus] CSV parser class

2010-01-23 Thread Graeme Geldenhuys
2010/1/22 Michael Van Canneyt : >> Have you seen the built-in CSV support in TStrings? > > Or the TSDFDataset class in sdfdata ? Or the two different implementations in tiOPF project. :) Anyway, to get your code in the CCR, I normally email Vincent the code in private. Thought I must say, I do

Re: [Lazarus] CSV parser class

2010-01-22 Thread Alexander Klenin
On Sat, Jan 23, 2010 at 06:53, Hans-Peter Diettrich wrote: > Vladimir Zhirov schrieb: > >> I made a unit to work with files in CSV (comma separated values) >> format and would like to submit it to Lazarus CCR. > > Have you seen the built-in CSV support in TStrings? That's interesting. Where is it

Re: [Lazarus] CSV parser class

2010-01-22 Thread Vincent Snijders
Vladimir Zhirov schreef: Hi, I made a unit to work with files in CSV (comma separated values) format and would like to submit it to Lazarus CCR. What is the best way to proceed? See http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Creating_a_Code_Release_Page and further. Vincent

Re: [Lazarus] CSV parser class

2010-01-22 Thread Michael Van Canneyt
On Fri, 22 Jan 2010, Hans-Peter Diettrich wrote: Vladimir Zhirov schrieb: I made a unit to work with files in CSV (comma separated values) format and would like to submit it to Lazarus CCR. Have you seen the built-in CSV support in TStrings? Or the TSDFDataset class in sdfdata ? Michael

Re: [Lazarus] CSV parser class

2010-01-22 Thread Hans-Peter Diettrich
Vladimir Zhirov schrieb: I made a unit to work with files in CSV (comma separated values) format and would like to submit it to Lazarus CCR. Have you seen the built-in CSV support in TStrings? DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus

[Lazarus] CSV parser class

2010-01-22 Thread Vladimir Zhirov
Hi, I made a unit to work with files in CSV (comma separated values) format and would like to submit it to Lazarus CCR. What is the best way to proceed? -- Vladimir Zhirov -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.