posted on 2003-08-01
Version 3.1 is the initial release of the Regular Expression Component Library for Visual C++ 7.1 and is an upgrade release for VC++ 6.0 and VC++ 7.0. It has been set as version 3.1 to maintain compatibility with other editions of the library.
Listed here are the main features of the library:
a) A properties, methods, and events model for accessing regular expression functionality. The implementation supports both MFC GUI modules and console mode modules using extremely similar models. You can access properties and events using data member notation or by calling functions using Set and Get functionality. Events for member function handling use the new Unified Event Model, which uses __hook and __unhook to handle events or remove an event handler.
b) Properties for specifying a regular expression, string to match, file specification ( with wildcards ) to match, flexible options for regular expression syntax, flexible options for matching considerations, and other properties to enhance matching capabilities.
c) Methods to match a string in numerous ways; the entire string, the
beginning of the string, anywhere in the string, multiple exclusive matches in a string. Methods to match file data; either a single match in a file or multiple matches in a file. A method to change data in a string based on format-like replacement syntax which can use the actual data found or one of its sub-expressions. A method to change file data using the same format-like replacement as with a string. The methods to change string or file data can change the replacement string on-the-fly by using the appropriate event handler.
d) Events to handle the gathering of specific data for each of the matching
methods. Most of the event handlers gain access to what the expression
matches as well as to what each sub-expression of the expression matches.
e) The library supports multi-threaded access, and reuse and re-entrancy in