]> git.saurik.com Git - wxWidgets.git/blame - src/regex/README
placeholder
[wxWidgets.git] / src / regex / README
CommitLineData
e970653a 1wxWindows regex
1701c4d4
VS
2---------------
3This is a version of Henry Spencer's regex, which was taken from the
4source of TCL (Toolkit Command Language). It implements POSIX regular
5expressions and also supports Unicode and some Perl5 extensions.
6
7The modifications made by the wxWindows team are as follows:
8
9regcustom.h
10-----------
11Types and constants appropriate for our use of the library are defined
12here.
13
14regex.h
15-------
16This is unmodified. Note though, that a portion of it (clearly marked)
17is copied from regcustom.h as part of the build process.
18
19regc_locale.c
20-------------
21This module provides character classifications.
22
23The current version from Tcl supports only a Unicode build. The
24original code from Henry Spencer, on the other hand, was ASCII only.
25Therefore, in order to support both, code from the ASCII version has been
26incorporated into the Unicode version, conditionally compiled depending
27on wxUSE_UNICODE.
28
29The only non-trivial dependencies were: Tcl_UniCharToUpper,
30Tcl_UniCharToLower and Tcl_UniCharToTitle. The implementations of these
31have also been incorporated (from Tcl). These in turn depend only the data
32tables in tclUniData.c (which is unmodified). At some point wxWindows
33may have it's own Unicode character classification code, at which point
34these should be used instead.
35
36Other dependencies (on Tcl_DString) have been eliminated using wxWindows
37wxChar functions.
38
39The ASCII version has also been extended to support character
40classifications based on the current locale rather than ASCII only.
e970653a 41