]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: regex.h | |
e54c96f1 | 3 | // Purpose: interface of wxRegEx |
23324ae1 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
3ed3a1c8 BP |
9 | /** |
10 | Flags for regex compilation to be used with Compile(). | |
11 | */ | |
12 | enum | |
13 | { | |
14 | /** Use extended regex syntax. */ | |
15 | wxRE_EXTENDED = 0, | |
16 | ||
17 | /** Use advanced RE syntax (built-in regex only). */ | |
18 | wxRE_ADVANCED = 1, | |
19 | ||
20 | /** Use basic RE syntax. */ | |
21 | wxRE_BASIC = 2, | |
22 | ||
23 | /** Ignore case in match. */ | |
24 | wxRE_ICASE = 4, | |
25 | ||
26 | /** Only check match, don't set back references. */ | |
27 | wxRE_NOSUB = 8, | |
28 | ||
29 | /** | |
30 | If not set, treat '\n' as an ordinary character, otherwise it is | |
31 | special: it is not matched by '.' and '^' and '$' always match | |
32 | after/before it regardless of the setting of wxRE_NOT[BE]OL. | |
33 | */ | |
34 | wxRE_NEWLINE = 16, | |
35 | ||
36 | /** Default flags.*/ | |
37 | wxRE_DEFAULT = wxRE_EXTENDED | |
38 | }; | |
39 | ||
40 | /** | |
41 | Flags for regex matching to be used with Matches(). | |
42 | These flags are mainly useful when doing several matches in a long string | |
43 |