Main Page Modules Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
csutil/regexp.h File Reference
Regular expressions support.
More...
#include "csextern.h"
#include "csutil/array.h"
Go to the source code of this file.
|
Compounds |
struct | csRegExpMatch |
| Information about (sub)expression matches. More...
|
class | csRegExpMatcher |
| Matcher for regular expressions. More...
|
Enumerations |
enum | csRegExpMatchError {
NoError,
NoMatch,
BadBraces,
BadPattern,
BadRepetition,
ErrCollate,
ErrCharType,
ErrEscape,
ErrSubReg,
ErrBrackets,
ErrParentheses,
ErrBraces,
ErrRange,
ErrSpace,
ErrUnknown
} |
| Possible errors that can occur during matching. More...
|
enum | csRegExpMatchFlags { IgnoreCase = 1,
NewLine = 2,
NotBOL = 4,
NotEOL = 8
} |
| Flags for regular expression matching. More...
|
Detailed Description
Regular expressions support.
Definition in file regexp.h.
Enumeration Type Documentation
|
Possible errors that can occur during matching.
- Enumeration values:
-
NoError |
No problems during matching. |
NoMatch |
The pattern didn't match the string. |
BadBraces |
There was an invalid \ .
...\} construct in the regular expression. A valid \\{...\\} construct must contain either a single number, or two numbers in increasing order separated by a comma. |
BadPattern |
There was a syntax error in the regular expression. |
BadRepetition |
A repetition operator such as?or *appeared in a bad position(with nopreceding subexpression to act on). |
ErrCollate |
The regular expression referred to an invalid collating element (one not defined in the current locale for string collation). |
ErrCharType |
The regular expression referred to an invalid character class name. |
ErrEscape |
The regular expression ended with \\ . |
ErrSubReg |
There was an invalid number in the \\digit construct. |
ErrBrackets |
There were unbalanced square brackets in the regular expression. |
ErrParentheses |
An extended regular expression had unbalanced parentheses, or a basic regular expression had unbalanced \\( and \\) . |
ErrBraces |
The regular expression had unbalanced \ .
and \\} . |
ErrRange |
One of the endpoints in a range expression was invalid. |
ErrSpace |
Out of memory. |
ErrUnknown |
Unknown error. |
Definition at line 32 of file regexp.h. |
|
Flags for regular expression matching.
- Enumeration values:
-
IgnoreCase |
Ignore case when matching letters. |
NewLine |
Treat a newline in string as dividing string into multiple lines, so that $ can match before the newline and ^ can match after.
Also, don't permit . to match a newline, and don't permit [^...] to match a newline.
Otherwise, newline acts like any other ordinary character. |
NotBOL |
Do not regard the beginning of the specified string as the beginning of a line; more generally, don't make any assumptions about what text might precede it. |
NotEOL |
Do not regard the end of the specified string as the end of a line; more generally, don't make any assumptions about what text might follow it. |
Definition at line 100 of file regexp.h. |
Generated for Crystal Space by
doxygen 1.2.18