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
> >>> 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
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
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
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))
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
> 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
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