Next: regexps ctors, Up: regexps [Contents][Index]
Opaque type for regular expression objects; it is meant to be used to declare pointers to objects. Instances of this type can be used for any number of matching operations and are safe for concurrent use by multiple threads.
Simple data structure used to reference a portion of another string. It has the following fields:
const char * data
Pointer to the first byte in the referenced substring.
int length
The number of bytes in the referenced substring.
Opaque type for iterators over named capturing groups.
Enumeration type for error codes returned by cre2_error_code()
.
It contains the following symbols:
CRE2_NO_ERROR
Defined as 0
, represents a successful operation.
CRE2_ERROR_INTERNAL
Unexpected error.
CRE2_ERROR_BAD_ESCAPE
Bad escape sequence.
CRE2_ERROR_BAD_CHAR_CLASS
Bad character class.
CRE2_ERROR_BAD_CHAR_RANGE
Bad character class range.
CRE2_ERROR_MISSING_BRACKET
Missing closing ]
.
CRE2_ERROR_MISSING_PAREN
Missing closing )
.
CRE2_ERROR_TRAILING_BACKSLASH
Trailing \
at end of regexp.
CRE2_ERROR_REPEAT_ARGUMENT
Repeat argument missing, e.g. *
.
CRE2_ERROR_REPEAT_SIZE
Bad repetition argument.
CRE2_ERROR_REPEAT_OP
Bad repetition operator.
CRE2_ERROR_BAD_PERL_OP
Bad Perl operator.
CRE2_ERROR_BAD_UTF8
Invalid UTF-8 in regexp.
CRE2_ERROR_BAD_NAMED_CAPTURE
Bad named capture group.
CRE2_ERROR_PATTERN_TOO_LARGE
Pattern too large (compile failed).
Next: regexps ctors, Up: regexps [Contents][Index]
This document describes version 0.4.0-devel.2 of CRE2.