Am Mittwoch, den 11.07.2007, 20:48 -0700 schrieb L:
> > > > Wouldn't this function be a candidate for crawling into the 'strutils'
> > > > unit?
> > >
> > > Probably, but I would change the interface:
> > >
> > > function Split(const str: string; const separator: string; var Res : array
> of
> > >
On Thursday 12 July 2007 07:30, Michael Van Canneyt wrote:
> Can you, BTW, explain the reference to Knuth ? I know who Donald
> Knuth is, but fail to see the link... ?
http://www.brainyquote.com/quotes/quotes/d/donaldknut181625.html
Vinzent.
___
fpc-
On Wed, 11 Jul 2007, L wrote:
> > > > Wouldn't this function be a candidate for crawling into the 'strutils'
> > > > unit?
> > >
> > > Probably, but I would change the interface:
> > >
> > > function Split(const str: string; const separator: string; var Res : array
> of
> > > string) : Integer;
> > > Wouldn't this function be a candidate for crawling into the 'strutils'
> > > unit?
> >
> > Probably, but I would change the interface:
> >
> > function Split(const str: string; const separator: string; var Res : array
of
> > string) : Integer;
> >
> > So the function returns the number of ele
Am Mittwoch, den 11.07.2007, 12:09 +0200 schrieb Michael Van Canneyt:
>
> On Tue, 10 Jul 2007, Marc Santhoff wrote:
[...]
> > Wouldn't this function be a candidate for crawling into the 'strutils'
> > unit?
>
> Probably, but I would change the interface:
>
> function Split(const str: string; c
On Tue, 10 Jul 2007, Marc Santhoff wrote:
> Am Dienstag, den 10.07.2007, 14:56 +0200 schrieb Andrea Mauri:
> > I used this, check it.
> >
> > // Returns an array with the parts of "str" separated by "separator"
> > function Split(const str: string; const separator: string): array of string;
> >
On Wed, 11 Jul 2007, L wrote:
> Marc Santhoff wrote:
> > Hi,
> >
> > is there any function in the libraries of fpc for splitting a string
> > into an array naming the separator?
>
> There is a function in the substrings.pas unit included in this
> package:
>
> http://z505.com/cgi-bin/powtils/d
En/na L ha escrit:
Many functions should be merged into an FPC rtl unit I suppose, since it appears
many of us are reinventing the wheel each time rolling our own private units.
It's amazing the amount of extremely useful types/classes/functions
available out of the box, but they are virtuall
Marc Santhoff wrote:
> Hi,
>
> is there any function in the libraries of fpc for splitting a string
> into an array naming the separator?
There is a function in the substrings.pas unit included in this
package:
http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=substrsplit&unit=substrings
And
Am Dienstag, den 10.07.2007, 14:56 +0200 schrieb Andrea Mauri:
> I used this, check it.
>
> // Returns an array with the parts of "str" separated by "separator"
> function Split(const str: string; const separator: string): array of string;
> var
> i, n: integer;
> strline, strfield: string;
>
On Tuesday 10 July 2007 13.00, Marc Santhoff wrote:
> Hi,
>
> is there any function in the libraries of fpc for splitting a string
> into an array naming the separator?
>
Procedure splitstring from MSEgui, file lib/common/kernel/msestrings.pas.
http://www.homepage.bluewin.ch/msegui/
Martin
_
iche Nachricht-
Von: FPC-Pascal users discussions
Gesendet: 10.07.07 13:04:31
An: FPC-Pascal users discussions
Betreff: [fpc-pascal] splitting string into array
Hi,
is there any function in the libraries of fpc for splitting a string
into an array naming the separator?
In awk for e
all
splitted parts back to a single string.
Wolfram
-Ursprüngliche Nachricht-
Von: FPC-Pascal users discussions
Gesendet: 10.07.07 13:04:31
An: FPC-Pascal users discussions
Betreff: [fpc-pascal] splitting string into array
Hi,
is there any function in the librar
accomplished by using PHP like 'implode', which glues all
splitted parts back to a single string.
Wolfram
> -Ursprüngliche Nachricht-
> Von: FPC-Pascal users discussions
> Gesendet: 10.07.07 13:04:31
> An: FPC-Pascal users discussions
> Betreff: [fpc-pascal] spl
Am Dienstag, den 10.07.2007, 13:17 +0200 schrieb Luca Olivetti:
> En/na Marc Santhoff ha escrit:
> > Hi,
> >
> > is there any function in the libraries of fpc for splitting a string
> > into an array naming the separator?
>
> not exactly but I found:
>
> http://www.freepascal.org/docs-html/rtl/s
Op Tue, 10 Jul 2007, schreef Marc Santhoff:
> Hi,
>
> is there any function in the libraries of fpc for splitting a string
> into an array naming the separator?
>
> In awk for eample if you do this:
>
> split("ab-cd-ef", x, "-")
> print x[2]
>
> it would split up the first string
En/na Marc Santhoff ha escrit:
Hi,
is there any function in the libraries of fpc for splitting a string
into an array naming the separator?
not exactly but I found:
http://www.freepascal.org/docs-html/rtl/strutils/extractdelimited.html
maybe exactly what you're searching is already there, s
Hi,
is there any function in the libraries of fpc for splitting a string
into an array naming the separator?
In awk for eample if you do this:
split("ab-cd-ef", x, "-")
print x[2]
it would split up the first string using "-" as separator and print
cd
to the output. Tha
18 matches
Mail list logo