Class TGrep (unit Grep)

Inherits from

TComponent

Constructors


constructor Create(AOwner: TComponent);



Functions

destructor Destroy;


function Grep: boolean;

while

procedure Split(max: integer; elems: TStrings);


function Subst(s: string): string;


function GetSubExp(index: TSubExpRange): TSubRegExp;


procedure Reset;


procedure SetRegExp(s: string);


procedure SetText(s: string);

end;

Properties

property Found : boolean


property RegExp : string


property SubExp : TSubRegExp


property Text : string


Events

event OnGrep : TNotifyEvent


Variables

FFound : boolean;


FOnGrep : TNotifyEvent;


FProg : PTRegExpC;


FPText : pchar;


FPTextPos : pchar;


FRegExp : TRegExp;


FSubExp : array[TSubExpRange] of TSubRegExp;


FSubExpRetrieved : boolean;


FText : string;



Constructors


constructor Create(AOwner: TComponent);


Functions


destructor Destroy;


function Grep: boolean;

while


procedure Split(max: integer; elems: TStrings);


function Subst(s: string): string;


function GetSubExp(index: TSubExpRange): TSubRegExp;


procedure Reset;


procedure SetRegExp(s: string);


procedure SetText(s: string);

end;


Properties


property Found : boolean


property RegExp : string


property SubExp : TSubRegExp


property Text : string


Events


event OnGrep : TNotifyEvent


Variables


FFound : boolean;


FOnGrep : TNotifyEvent;


FProg : PTRegExpC;


FPText : pchar;


FPTextPos : pchar;


FRegExp : TRegExp;


FSubExp : array[TSubExpRange] of TSubRegExp;


FSubExpRetrieved : boolean;


FText : string;