3.9.4. Regular expression moduleΒΆ
Regular expression module
DefinesFunctionsREGEXP_MATCH
REGEXP_NOMATCH
REGEXP_ERROR
REGEXP_PARTIAL
REGEXP_CASE_INSENSITIVE
REGEXP_EXTENDED
Variablesstruct regexp_module * regexp_module_load(const char * module_name, struct parameters * args)void regexp_module_release(struct regexp_module * module)
struct regexp_result regexp_result_init
class regexp_result
Public Memberssize_t first
size_t last
class regexp_module
Public Membersstruct module module
int(* match)(const char *pattern, int options, const char *buffer, int len, struct regexp_result *result)
int(* vbmatch)(const char *pattern, int options, struct vbuffer_sub *vbuf, struct vbuffer_sub *result)
struct regexp *(* compile)(const char *pattern, int options)
void(* release_regexp)(struct regexp *regexp)
int(* exec)(struct regexp *regexp, const char *buffer, int len, struct regexp_result *result)
int(* vbexec)(struct regexp *regexp, struct vbuffer_sub *vbuf, struct vbuffer_sub *result)
struct regexp_sink *(* create_sink)(struct regexp *regexp)
void(* free_regexp_sink)(struct regexp_sink *re_sink)
int(* feed)(struct regexp_sink *re_sink, const char *buffer, int len, bool eof, struct regexp_result *result)
int(* vbfeed)(struct regexp_sink *re_sink, struct vbuffer_sub *vbuf, bool eof, struct vbuffer_iterator *begin, struct vbuffer_iterator *end)
class regexp
Public Members
class regexp_sink
Public Membersstruct regexp * regexp
int match