Re: Fastcode MM B&V 0.14

From: Fredrik Lysholm (fredrik.lysholm_at_mogul.com)
Date: 02/10/05


Date: Thu, 10 Feb 2005 17:36:48 +0100

function PosEx(const SubStr, S: string; Offset: Cardinal = 1): Integer;
var
  I,X: Integer;
  Len, LenSubStr: Integer;
begin
  if Offset = 1 then
    Result := Pos(SubStr, S)
  else
  begin
    I := Offset;
    LenSubStr := Length(SubStr);
    Len := Length(S) - LenSubStr + 1;
    while I <= Len do
    begin
      if S[I] = SubStr[1] then
      begin
        X := 1;
        while (X < LenSubStr) and (S[I + X] = SubStr[X + 1]) do
          Inc(X);
        if (X = LenSubStr) then
        begin
          Result := I;
          exit;
        end;
      end;
      Inc(I);
    end;
    Result := 0;
  end;
end;

use that until it's fixed..

"Eric W. Carman" <ewcarman@ _REMOVETHIS_ ecsoftwareconsulting.dot.com> wrote
in message news:420b8122$1@newsgroups.borland.com...
> Hello Pierre,
>
> Having trouble with the graphs units and PosEx on Delphi 6. Undeclared
> identifier: PosEx.
>
> Best Regards,
> Eric
>
>
> "Pierre le Riche" <pleriche@hotmail.com> wrote in message
> news:420b7755@newsgroups.borland.com...
>> Posted to attachments.
>>
>> Changes:
>> 1) Graphs are normalised to 100%
>> 2) Added Dennis' Changes.
>> 3) Put in the latest FastMove 2.1
>>
>> Regards,
>> Pierre
>>
>
>



Relevant Pages

  • Re: Class Size Creation Statistics
    ... It is used by the memory leak report. ... Regards, ... Pierre ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • Re: Nexus VS FastMM4
    ... Nexus and Pierre will help me out. ... I can make some preliminary exes with the tests disabled. ... Best regards ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode MM B&V 0.50
    ... Pierre le Riche wrote: ... > I hope the new AllocMem benchmark will be in. ... I've been concentrating on automating the building and testing, ... Regards, ...
    (borland.public.delphi.language.basm)
  • Re: Fragmenting memory
    ... When it is freed the free blocks can be merged and the MM can "recover", ... Regards, ... Pierre ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode PosEx B&V 1.5.0 Benchmark Results
    ... > I do not currently have any plans for working on the PosEx B&V. ... > Hi Aleksandr ... > Best regards ...
    (borland.public.delphi.language.basm)