14 #if defined(__LCLINT__)
16 extern int fnmatch (
const char *__pattern,
const char *__name,
int __flags)
60 typedef struct miRE_s *
miRE;
73 #if defined(_MIRE_INTERNAL)
75 #if defined(__LCLINT__)
77 extern void regfree ( regex_t *preg)
82 #if defined(WITH_PCRE)
85 #if defined(WITH_PCRE) && defined(WITH_PCRE_POSIX)
86 #include <pcreposix.h>
107 const unsigned char * table;
121 #if defined(__LCLINT__)
158 #define mireUnlink(_mire) \
159 (miRE)rpmioUnlinkPoolItem((rpmioItem)_mire, __FUNCTION__, __FILE__, __LINE__)
169 #define mireLink(_mire) \
170 (miRE)rpmioLinkPoolItem((rpmioItem)_mire, __FUNCTION__, __FILE__, __LINE__)
181 #define mireFree(_mire) \
182 (miRE)rpmioFreePoolItem((rpmioItem)_mire, __FUNCTION__, __FILE__, __LINE__)
216 const unsigned char * table)
238 int caseless,
int multiline,
int utf8)
283 const unsigned char * table,
284 miRE * mirep,
int * nmirep)
300 const unsigned char * table,
301 miRE * mirep,
int * nmirep)
315 const char *
s,
size_t slen,
int rc)
rpmMireMode_e
Tag value pattern match mode.
int mireSetEOptions(miRE mire, int *offsets, int noffsets)
Initialize pattern execute options (PCRE only).
miRE mireNew(rpmMireMode mode, int tag)
Create pattern container.
int mireApply(miRE mire, int nmire, const char *s, size_t slen, int rc)
Apply array of patterns to a string.
int _mireGLOBoptions
GLOB default: FNM_PATHNAME | FNM_PERIOD.
int mireLoadPatterns(rpmMireMode mode, int tag, const char **patterns, const unsigned char *table, miRE *mirep, int *nmirep)
Load patterns from string array.
void * mireFreeAll(miRE mire, int nmire)
Destroy compiled patterns.
const unsigned char * _mirePCREtables
int mireRegcomp(miRE mire, const char *pattern)
Compile pattern match.
int mireSetCOptions(miRE mire, rpmMireMode mode, int tag, int options, const unsigned char *table)
Initialize pattern compile options.
int mireClean(miRE mire)
Deallocate pattern match memory.
static PyObject *char * mode
int _mirePCREoptions
PCRE default: 0.
static const char * locale
int mireRegexec(miRE mire, const char *val, size_t vallen)
Execute pattern match.
enum rpmMireMode_e rpmMireMode
Tag value pattern match mode.
int mireStudy(miRE mire, int nmires)
Study PCRE patterns (if any).
int fnmatch(char *__pattern, char *__name, int __flags)
int mireSetLocale(miRE mire, const char *locale)
Compile locale-specific PCRE tables.
miRE mireGetPool(rpmioPool pool)
Allocate a miRE container from the pool.
int _mireSTRINGoptions
STRING default: 0.
int _mireREGEXoptions
REGEX default: REG_EXTENDED.
int mireAppend(rpmMireMode mode, int tag, const char *pattern, const unsigned char *table, miRE *mirep, int *nmirep)
Append pattern to array.
#define mireUnlink(_mire)
int mireSetGOptions(const char *newline, int caseless, int multiline, int utf8)
Initialize pattern global options (PCRE only).
static const char * newline
enum mireEL_e mireEL_t
Line ending types.
mireEL_e
Line ending types.