10#ifndef __WSUTIL_REGEX_H__
11#define __WSUTIL_REGEX_H__
23ws_regex_compile(
const char *patt,
char **errmsg);
25#define WS_REGEX_CASELESS (1U << 0)
28#define WS_REGEX_NEVER_UTF (1U << 1)
29#define WS_REGEX_ANCHORED (1U << 2)
32ws_regex_compile_ex(
const char *patt, ssize_t size,
char **errmsg,
unsigned flags);
41 const char *subj, ssize_t subj_length);
56 const char *subj, ssize_t subj_length,
57 size_t subj_offset,
size_t pos_vect[2]);
62WS_DLL_PUBLIC
const char *
WS_DLL_PUBLIC bool ws_regex_matches(const ws_regex_t *re, const char *subj)
Definition regex.c:144
WS_DLL_PUBLIC bool ws_regex_matches_length(const ws_regex_t *re, const char *subj, ssize_t subj_length)
Definition regex.c:151
WS_DLL_PUBLIC bool ws_regex_matches_pos(const ws_regex_t *re, const char *subj, ssize_t subj_length, size_t subj_offset, size_t pos_vect[2])
Definition regex.c:170