Go to the source code of this file.
Datastructures for representing a subset of regular expressions.
- Author
- Kjetil T. Homme <kjeti.nosp@m.lho@.nosp@m.ifi.u.nosp@m.io.n.nosp@m.o> May 1993
Definition in file re-cmp.h.
◆ Boolean
◆ False
◆ RE_TOKEN_MAX
Max amount of tokens in a regexp. Each token uses ~264 bytes. They are allocated as needed, but never de-allocated. E.g. [A-Za-z0-9_] counts as one token, so 64 should be plenty for most purposes.
Definition at line 19 of file re-cmp.h.
◆ SAFE_CHECKS
Regexp's with syntax errors will core dump if this is undefined.
Definition at line 15 of file re-cmp.h.
◆ True
Changing this value will break the code
Definition at line 44 of file re-cmp.h.
◆ uchar
#define uchar unsigned char |
◆ repetetion_type
Enumerator |
---|
rep_once | corresponds to no meta-char
|
rep_once_or_more | corresponds to +
|
rep_null_or_once | corresponds to eg ?
|
rep_null_or_more | corresponds to eg *
|
Definition at line 57 of file re-cmp.h.
◆ selection_type
Enumerator |
---|
sel_any | corresponds to eg .
|
sel_end | corresponds to eg $
|
sel_single | corresponds to eg q
|
sel_range | corresponds to eg [A-F]
|
sel_array | corresponds to eg [AF-RqO-T]
|
sel_not_single | corresponds to eg [^f]
|
sel_not_range | corresponds to eg [^A-F]
|
Definition at line 47 of file re-cmp.h.