Class: TRegExpr

 TObject ----+
             |
         TRegExpr

Description:
Clase auxiliar que implementa expresiones Regulares. Se ultiliza para validar los campos de texto

Unit:
RegExpr (RegExpr.pas)

Constructors:

constructor Create;

Properties:

property CompilerErrorPos : integer read GetCompilerErrorPos;
property Expression : RegExprString read GetExpression write SetExpression;
property InputString : RegExprString read GetInputString write SetInputString;
property InvertCase : TRegExprInvertCaseFunction read fInvertCase write fInvertCase; //##0.935
property Match [Idx : integer] : RegExprString read GetMatch;
property MatchLen [Idx : integer] : integer read GetMatchLen;
property MatchPos [Idx : integer] : integer read GetMatchPos;
property ModifierI : boolean index 1 read GetModifier write SetModifier;
property ModifierR : boolean index 2 read GetModifier write SetModifier;
property ModifierS : boolean index 3 read GetModifier write SetModifier;
property ModifierStr : RegExprString read GetModifierStr write SetModifierStr;
property SpaceChars : RegExprString read fSpaceChars write fSpaceChars; //###0.927
property SubExprMatchCount : integer read GetSubExprMatchCount;
property WordChars : RegExprString read fWordChars write fWordChars; //###0.929

Methods:

destructor Destroy; override;
function Dump : RegExprString;
function ErrorMsg (AErrorID : integer) : RegExprString; virtual;
function Exec (const AInputString : RegExprString) : boolean;
function ExecNext : boolean;
function ExecPos (AOffset: integer {$IFDEF D4_}= 1{$ENDIF}) : boolean;
function LastError : integer;
function Replace (AInputStr : RegExprString; const AReplaceStr : RegExprString) : RegExprString;
procedure Split (AInputStr : RegExprString; APieces : TStrings);
function Substitute (const ATemplate : RegExprString) : RegExprString;

constructor Create;


property CompilerErrorPos : integer read GetCompilerErrorPos;


property Expression : RegExprString read GetExpression write SetExpression;


property InputString : RegExprString read GetInputString write SetInputString;


property InvertCase : TRegExprInvertCaseFunction read fInvertCase write fInvertCase; //##0.935


property Match [Idx : integer] : RegExprString read GetMatch;


property MatchLen [Idx : integer] : integer read GetMatchLen;


property MatchPos [Idx : integer] : integer read GetMatchPos;


property ModifierI : boolean index 1 read GetModifier write SetModifier;


property ModifierR : boolean index 2 read GetModifier write SetModifier;


property ModifierS : boolean index 3 read GetModifier write SetModifier;


property ModifierStr : RegExprString read GetModifierStr write SetModifierStr;


property SpaceChars : RegExprString read fSpaceChars write fSpaceChars; //###0.927


property SubExprMatchCount : integer read GetSubExprMatchCount;


property WordChars : RegExprString read fWordChars write fWordChars; //###0.929


destructor Destroy; override;


function Dump : RegExprString;


function ErrorMsg (AErrorID : integer) : RegExprString; virtual;


function Exec (const AInputString : RegExprString) : boolean;


function ExecNext : boolean;


function ExecPos (AOffset: integer {$IFDEF D4_}= 1{$ENDIF}) : boolean;


function LastError : integer;


function Replace (AInputStr : RegExprString; const AReplaceStr : RegExprString) : RegExprString;


procedure Split (AInputStr : RegExprString; APieces : TStrings);


function Substitute (const ATemplate : RegExprString) : RegExprString;