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 mireSetCOptions(miRE mire, rpmMireMode mode, int tag, int options, const unsigned char *table)
Initialize pattern compile options.
int mireLoadPatterns(rpmMireMode mode, int tag, const char **patterns, const unsigned char *table, miRE *mirep, int *nmirep)
Load patterns from string array.
int mireRegcomp(miRE mire, const char *pattern)
Compile pattern match.
const unsigned char * _mirePCREtables
miRE mireGetPool(rpmioPool pool)
Allocate a miRE container from the pool.
miRE mireNew(rpmMireMode mode, int tag)
Create pattern container.
int mireSetEOptions(miRE mire, int *offsets, int noffsets)
Initialize pattern execute options (PCRE only).
int _mirePCREoptions
PCRE default: 0.
void * mireFreeAll(miRE mire, int nmire)
Destroy compiled patterns.
int mireRegexec(miRE mire, const char *val, size_t vallen)
Execute pattern match.
int mireStudy(miRE mire, int nmires)
Study PCRE patterns (if any).
enum rpmMireMode_e rpmMireMode
Tag value pattern match mode.
int mireClean(miRE mire)
Deallocate pattern match memory.
int _mireGLOBoptions
GLOB default: FNM_PATHNAME | FNM_PERIOD.
int _mireSTRINGoptions
STRING default: 0.
int mireAppend(rpmMireMode mode, int tag, const char *pattern, const unsigned char *table, miRE *mirep, int *nmirep)
Append pattern to array.
int mireSetGOptions(const char *newline, int caseless, int multiline, int utf8)
Initialize pattern global options (PCRE only).
#define mireUnlink(_mire)
static const char * locale
int _mireREGEXoptions
REGEX default: REG_EXTENDED.
static const char * newline
int mireApply(miRE mire, int nmire, const char *s, size_t slen, int rc)
Apply array of patterns to a string.
int mireSetLocale(miRE mire, const char *locale)
Compile locale-specific PCRE tables.
int fnmatch(char *pattern, const char *string, int flags) const
enum mireEL_e mireEL_t
Line ending types.
mireEL_e
Line ending types.