2 <H2>Unit: RegExpr</H2>
\r
3 <B>Description:</B><BR>Implementación de expresiones regulares para Delphi<BR><BR>
\r
5 <A HREF=ERegExpr.html>ERegExpr</A>
\r
6 : Excepción de expresiones regulares<BR>
\r
7 <A HREF=TRegExpr.html>TRegExpr</A>
\r
8 : Clase auxiliar que implementa expresiones Regulares. Se ultiliza para validar los campos de texto<BR>
\r
9 <BR><B>Functions:</B>
\r
11 <A NAME=ExecRegExpr ></A>
\r
12 <dt><IMG SRC=functions_big.gif><code> function ExecRegExpr (const ARegExpr, AInputStr : RegExprString) : boolean;</code></dt>
\r
13 <dd>true if string AInputString match regular expression ARegExpr
\r
14 ! will raise exeption if syntax errors in ARegExpr</dd><p>
\r
15 <A NAME=QuoteRegExprMetaChars ></A>
\r
16 <dt><IMG SRC=functions_big.gif><code> function QuoteRegExprMetaChars (const AStr : RegExprString) : RegExprString;</code></dt>
\r
17 <dd>Replace all metachars with its safe representation,
\r
18 for example 'abc$cd.(' converts into 'abc\$cd\.\('
\r
19 This function usefull for r.e. autogeneration from
\r
21 <A NAME=ReplaceRegExpr ></A>
\r
22 <dt><IMG SRC=functions_big.gif><code> function ReplaceRegExpr (const ARegExpr, AInputStr, AReplaceStr : RegExprString) : RegExprString;</code></dt>
\r
23 <dd>Returns AInputStr with r.e. occurencies replaced by AReplaceStr</dd><p>
\r
24 <A NAME=SplitRegExpr ></A>
\r
25 <dt><IMG SRC=functions_big.gif><code> procedure SplitRegExpr (const ARegExpr, AInputStr : RegExprString; APieces : TStrings);</code></dt>
\r
26 <dd>Split AInputStr into APieces by r.e. ARegExpr occurencies</dd><p>
\r
27 <A NAME=strcspn ></A>
\r
28 <dt><IMG SRC=functions_big.gif><code> function strcspn (s1 : PRegExprChar; s2 : PRegExprChar) : integer;</code></dt>
\r
30 <A NAME=StrLComp ></A>
\r
31 <dt><IMG SRC=functions_big.gif><code> function StrLComp (Str1, Str2: PRegExprChar; MaxLen: Cardinal): Integer;</code></dt>
\r
33 <A NAME=StrLCopy ></A>
\r
34 <dt><IMG SRC=functions_big.gif><code> function StrLCopy (Dest, Source: PRegExprChar; MaxLen: Cardinal): PRegExprChar;</code></dt>
\r
36 <A NAME=StrLen ></A>
\r
37 <dt><IMG SRC=functions_big.gif><code> function StrLen (Str: PRegExprChar): Cardinal;</code></dt>
\r
39 <A NAME=StrPCopy ></A>
\r
40 <dt><IMG SRC=functions_big.gif><code> function StrPCopy (Dest: PRegExprChar; const Source: RegExprString): PRegExprChar;</code></dt>
\r
42 <A NAME=StrPos ></A>
\r
43 <dt><IMG SRC=functions_big.gif><code> function StrPos (Str1, Str2: PRegExprChar): PRegExprChar;</code></dt>
\r
45 <A NAME=StrScan ></A>
\r
46 <dt><IMG SRC=functions_big.gif><code> function StrScan (Str: PRegExprChar; Chr: WideChar): PRegExprChar;</code></dt>
\r