Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-21 Thread Olle Raab
04-03-21 16.56, skrev Thomas Schatzl följande: > Hello, > x := pos ('Hello', my_str, 6); >>> >>> PosEx() from strutils? >> >> Cant find it in strutils.. > > Just checked the sources again, at least the 1.9.x branch contains a PosEx > method, line 93ff, from today's sources =) Sorry I bot

Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-21 Thread Marco van de Voort
> >>> x := pos ('Hello', my_str, 6); > >> > >> PosEx() from strutils? > > > >Cant find it in strutils.. > > Just checked the sources again, at least the 1.9.x branch contains a PosEx > method, line 93ff, from today's sources =) I implemented some files last weeks in the *utils category. Not ever

Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-21 Thread Thomas Schatzl
Hello, >>> x := pos ('Hello', my_str, 6); >> >> PosEx() from strutils? > >Cant find it in strutils.. Just checked the sources again, at least the 1.9.x branch contains a PosEx method, line 93ff, from today's sources =) Regards, Thomas ___ fpc-pasca

Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-21 Thread Olle Raab
04-03-06 11.25, skrev Thomas Schatzl följande: >> I would love to see a "pos" function that takes an additional parameter, > being the position in the string where it >should START scanning. e.g.: >> >> my_str = 'Hello, everybody... Hello, world!'; >> >> //123456789012345678901 >> >> x

Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-07 Thread Jonas Maebe
On 6 mrt 2004, at 07:56, Jeff Pohlmeyer wrote: function PosFrom( const needle:AnsiString; const haystack:AnsiString; StartPt:LongInt):LongInt; var p:pChar; begin Result:=0; if (StartPt <= Length(haystack)) then begin p:=StrPos(pChar(@haystack[StartPt]), pChar(needle))

Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-06 Thread Thomas Schatzl
Hello, > Dunno if this is the right place to post such a message, but here goes... I think you're completely right... > > I would love to see a "pos" function that takes an additional parameter, being the position in the string where it >should START scanning. e.g.: > > my_str = 'Hello, everybo

[fpc-pascal]feature request: enhanced "pos"

2004-03-05 Thread Jeff Pohlmeyer
> Dunno if this is the right place to post such a message, but here goes... > I would love to see a "pos" function that takes an additional parameter, being > the position in the string where it should START scanning. e.g.: > my_str = 'Hello, everybody... Hello, world!'; > x := pos ('Hello', m

[fpc-pascal]feature request: enhanced "pos"

2004-03-05 Thread David Emerson
Dunno if this is the right place to post such a message, but here goes... I would love to see a "pos" function that takes an additional parameter, being the position in the string where it should START scanning. e.g.: my_str = 'Hello, everybody... Hello, world!'; //123456789012345678901