#include "system.h"
#include <string.h>
#include "debug.h"
#include "fnmatch_loop.c"
Go to the source code of this file.
|
#define | NO_LEADING_PERIOD(flags) ((flags & (FNM_FILE_NAME | FNM_PERIOD)) == (FNM_FILE_NAME | FNM_PERIOD)) |
|
#define | ISASCII(c) 1 |
|
#define | ISBLANK(c) ((c) == ' ' || (c) == '\t') |
|
#define | ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c)) |
|
#define | ISPRINT(c) (ISASCII (c) && isprint (c)) |
|
#define | ISDIGIT(c) (ISASCII (c) && isdigit (c)) |
|
#define | ISALNUM(c) (ISASCII (c) && isalnum (c)) |
|
#define | ISALPHA(c) (ISASCII (c) && isalpha (c)) |
|
#define | ISCNTRL(c) (ISASCII (c) && iscntrl (c)) |
|
#define | ISLOWER(c) (ISASCII (c) && islower (c)) |
|
#define | ISPUNCT(c) (ISASCII (c) && ispunct (c)) |
|
#define | ISSPACE(c) (ISASCII (c) && isspace (c)) |
|
#define | ISUPPER(c) (ISASCII (c) && isupper (c)) |
|
#define | ISXDIGIT(c) (ISASCII (c) && isxdigit (c)) |
|
#define | STREQ(s1, s2) ((strcmp (s1, s2) == 0)) |
|
#define | CHAR_CLASS_MAX_LENGTH 6 /* Namely, `xdigit'. */ |
|
#define | IS_CHAR_CLASS(string) |
|
#define | internal_function |
|
#define | FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c)) |
|
#define | CHAR char |
|
#define | UCHAR unsigned char |
|
#define | INT int |
|
#define | FCT internal_fnmatch |
|
#define | EXT ext_match |
|
#define | END end_pattern |
|
#define | STRUCT fnmatch_struct |
|
#define | L(CS) CS |
|
#define | BTOWC(C) btowc (C) |
|
#define | STRLEN(S) strlen (S) |
|
#define | STRCAT(D, S) strcat (D, S) |
|
#define | MEMPCPY(D, S, N) __fnmatch_mempcpy (D, S, N) |
|
#define | MEMCHR(S, C, N) memchr (S, C, N) |
|
#define | STRCOLL(S1, S2) strcoll (S1, S2) |
|
|
static void * | __fnmatch_mempcpy (void *, const void *, size_t) |
|
int | fnmatch (char *pattern, const char *string, int flags) const |
|
§ BTOWC
#define BTOWC |
( |
|
C | ) |
btowc (C) |
§ CHAR
§ CHAR_CLASS_MAX_LENGTH
#define CHAR_CLASS_MAX_LENGTH 6 /* Namely, `xdigit'. */ |
§ END
§ EXT
§ FCT
#define FCT internal_fnmatch |
§ FOLD
§ INT
§ internal_function
#define internal_function |
§ IS_CHAR_CLASS
#define IS_CHAR_CLASS |
( |
|
string | ) |
|
Value:(
STREQ (
string,
"alpha") ||
STREQ (
string,
"upper") \
||
STREQ (
string,
"lower") ||
STREQ (
string,
"digit") \
||
STREQ (
string,
"alnum") ||
STREQ (
string,
"xdigit") \
||
STREQ (
string,
"space") ||
STREQ (
string,
"print") \
||
STREQ (
string,
"punct") ||
STREQ (
string,
"graph") \
||
STREQ (
string,
"cntrl") ||
STREQ (
string,
"blank"))
Definition at line 113 of file fnmatch.c.
§ ISALNUM
#define ISALNUM |
( |
|
c | ) |
(ISASCII (c) && isalnum (c)) |
§ ISALPHA
#define ISALPHA |
( |
|
c | ) |
(ISASCII (c) && isalpha (c)) |
§ ISASCII
§ ISBLANK
#define ISBLANK |
( |
|
c | ) |
((c) == ' ' || (c) == '\t') |
§ ISCNTRL
#define ISCNTRL |
( |
|
c | ) |
(ISASCII (c) && iscntrl (c)) |
§ ISDIGIT
#define ISDIGIT |
( |
|
c | ) |
(ISASCII (c) && isdigit (c)) |
§ ISGRAPH
#define ISGRAPH |
( |
|
c | ) |
(ISASCII (c) && isprint (c) && !isspace (c)) |
§ ISLOWER
#define ISLOWER |
( |
|
c | ) |
(ISASCII (c) && islower (c)) |
§ ISPRINT
#define ISPRINT |
( |
|
c | ) |
(ISASCII (c) && isprint (c)) |
§ ISPUNCT
#define ISPUNCT |
( |
|
c | ) |
(ISASCII (c) && ispunct (c)) |
§ ISSPACE
#define ISSPACE |
( |
|
c | ) |
(ISASCII (c) && isspace (c)) |
§ ISUPPER
#define ISUPPER |
( |
|
c | ) |
(ISASCII (c) && isupper (c)) |
§ ISXDIGIT
#define ISXDIGIT |
( |
|
c | ) |
(ISASCII (c) && isxdigit (c)) |
Definition at line 155 of file fnmatch.c.
Referenced by _rpmtsCheck(), cacheStashLatest(), compare(), httpOpen(), mtreeVisitF(), printFileInfo(), rpmdbClose(), rpmDigestInit(), rpmioFreePoolItem(), rpmvfFree(), and xarSize().
§ MEMCHR
#define MEMCHR |
( |
|
S, |
|
|
|
C, |
|
|
|
N |
|
) |
| memchr (S, C, N) |
§ MEMPCPY
§ NO_LEADING_PERIOD
§ STRCAT
#define STRCAT |
( |
|
D, |
|
|
|
S |
|
) |
| strcat (D, S) |
§ STRCOLL
#define STRCOLL |
( |
|
S1, |
|
|
|
S2 |
|
) |
| strcoll (S1, S2) |
§ STREQ
#define STREQ |
( |
|
s1, |
|
|
|
s2 |
|
) |
| ((strcmp (s1, s2) == 0)) |
§ STRLEN
#define STRLEN |
( |
|
S | ) |
strlen (S) |
§ STRUCT
#define STRUCT fnmatch_struct |
§ UCHAR
#define UCHAR unsigned char |
§ __fnmatch_mempcpy()
static void * __fnmatch_mempcpy |
( |
void * |
dest, |
|
|
const void * |
src, |
|
|
size_t |
n |
|
) |
| |
|
static |
§ fnmatch()
int fnmatch |
( |
char * |
pattern, |
|
|
const char * |
string, |
|
|
int |
flags |
|
) |
| const |
§ errno
§ posixly_correct