Colorer library regular expressions interface
The sources themselves are found in the colorer distribution (beginning with the "freecraze"
version), and the DLL can be compiled in icolorer
directory, which is also found in
the colorer distribution. In case you're using the sources you've got to work with the
CRegExp
class and its methods, and if you're using the DLL you simply export caller
functions for these methods.
It's good to mention my regexps are slightly incorrect by formal approach - it means they don't follow perl standards when applied to some complex situations. Plus they are not fully compatible with the latter in ways of syntax of some complex operators. But, all was made with speed and colorer in mind - so it pays when it comes to simplicity.
Methods
Method | Description |
---|---|
CRegExp | Regexp object constructor and destructor. |
isok | Latest expression compilation result. |
geterror | Extended error information. |
SetNoMoves | Allow/dissallow moving inside the target string. |
SetBkTrace | Set references for \yN operator. |
SetExpr | Expression compilation. |
SetCodePage | Set transliteration table for texts in non-OEM codepage. |
Parse | Parse regexp against target string. |
Parse | Parse regexp against target string, with extended settings. |
Structures:
Structure | Description |
---|---|
SMatches | array with finite bracket matches |