Unit: RegExpr

Description:
Implementación de expresiones regulares para Delphi

Classes:
ERegExpr : Excepción de expresiones regulares
TRegExpr : Clase auxiliar que implementa expresiones Regulares. Se ultiliza para validar los campos de texto

Functions:
function ExecRegExpr (const ARegExpr, AInputStr : RegExprString) : boolean;
true if string AInputString match regular expression ARegExpr ! will raise exeption if syntax errors in ARegExpr

function QuoteRegExprMetaChars (const AStr : RegExprString) : RegExprString;
Replace all metachars with its safe representation, for example 'abc$cd.(' converts into 'abc\$cd\.\(' This function usefull for r.e. autogeneration from user input

function ReplaceRegExpr (const ARegExpr, AInputStr, AReplaceStr : RegExprString) : RegExprString;
Returns AInputStr with r.e. occurencies replaced by AReplaceStr

procedure SplitRegExpr (const ARegExpr, AInputStr : RegExprString; APieces : TStrings);
Split AInputStr into APieces by r.e. ARegExpr occurencies

function strcspn (s1 : PRegExprChar; s2 : PRegExprChar) : integer;

function StrLComp (Str1, Str2: PRegExprChar; MaxLen: Cardinal): Integer;

function StrLCopy (Dest, Source: PRegExprChar; MaxLen: Cardinal): PRegExprChar;

function StrLen (Str: PRegExprChar): Cardinal;

function StrPCopy (Dest: PRegExprChar; const Source: RegExprString): PRegExprChar;

function StrPos (Str1, Str2: PRegExprChar): PRegExprChar;

function StrScan (Str: PRegExprChar; Chr: WideChar): PRegExprChar;