XHajT03 at mbox.vol.cz
Wed Sep 22 12:28:54 CEST 2004
On Wed, 22 Sep 2004 13:32:27 +0200, Darek Mazur wrote
> Użytkownik Tomas Hajny napisał:
> > On Wed, 22 Sep 2004 11:51:06 +0200, Darek Mazur wrote
> >>Użytkownik Tomas Hajny napisał:
> >>>From: Darek Mazur <darekm at emadar.com>
> >>>Date sent: Thu, 16 Sep 2004 16:52:54 +0200
> > .
> > .
> >>>A new procedure SetTextLineEnding (var T: text; S: string) was added
> >>>to System unit in CVS. This allows you to change line ending for
> >>But is function like
> >> GetTextLineEnding(vat T: text): string
> > Such a function can be added, of course, but keep in mind that it will only
> > return the value you assigned to it yourself (as already mentioned by
> > Vincent). Don't expect that it would be able to determine the used line ending
> > type in existing files while reading them - this is not possible (among other
> > reasons, you are never guaranteed to have uniform line endings throughout the
> > whole existing file).
> Of course, I don't expect test of format of file. I think, this
> function is need when pass T:text to other function
Why do you think this function is needed (sample scenario)?
More information about the fpc-devel