28 #ifndef REGIFY_UTIL_REGEX_H
29 #define REGIFY_UTIL_REGEX_H
163 const char* replacement, int32_t* code);
void * ruList
Opaque pointer to list object. See List Collection.
Definition: list.h:103
RUAPI ruRegex ruRegexFree(ruRegex rr)
Frees up the resources of the given ruRegex object.
enum ruRegexFlag_ ruRegexFlag
Constants for Regular Expression Match Modes.
RUAPI bool ruRegexMatch(ruRegex rr, const char *original, int32_t *code)
Indicates whether the given original matches the entire expression in rr.
RUAPI ruList ruRegexFindGroups(ruRegex rr, const char *original, int32_t *code)
Returns the matches found in the given original if it matched part of the expression in rr.
void * ruRegex
Opaque pointer to regular expression object.
Definition: regex.h:131
ruRegexFlag_
Constants for Regular Expression Match Modes.
Definition: regex.h:70
RUAPI ruRegex ruRegexNew(const char *pattern, ruRegexFlag flags, int32_t *code)
Creates a new regular expression object to be used with ruRegex(Replace|Match|...) free with ruRegexF...
RUAPI char * ruRegexReplace(ruRegex rr, const char *original, const char *replacement, int32_t *code)
Replace the found expression instances in original with the content found in replacement and return t...
RUAPI bool ruRegexFind(ruRegex rr, const char *original, int32_t *code)
Indicates whether the given original matches the part of the expression in rr.
RUAPI ruList ruRegexMatchGroups(ruRegex rr, const char *original, int32_t *code)
Returns the matches found in the given original if it matched the entire expression in rr.
@ RUREGEX_UWORD
Definition: regex.h:116
@ RUREGEX_ERROR_ON_UNKNOWN_ESCAPES
Definition: regex.h:124
@ RUREGEX_MULTILINE
Definition: regex.h:102
@ RUREGEX_COMMENTS
Definition: regex.h:82
@ RUREGEX_CANON_EQ
Definition: regex.h:77
@ RUREGEX_LITERAL
Definition: regex.h:96
@ RUREGEX_NULL
Definition: regex.h:73
@ RUREGEX_CASE_INSENSITIVE
Definition: regex.h:79
@ RUREGEX_DOTALL
Definition: regex.h:86
@ RUREGEX_UNIX_LINES
Definition: regex.h:108