#include "system.h"
#include <string.h>
#include "debug.h"
#include "fnmatch_loop.c"
Go to the source code of this file.
Defines |
#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 |
#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) |
Functions |
static void * | __fnmatch_mempcpy (void *, const void *, size_t) |
int | fnmatch (char *pattern, const char *string, int flags) const |
Variables |
int | errno |
static int | posixly_correct |
Define Documentation
#define BTOWC |
( |
|
C | ) |
btowc (C) |
#define CHAR_CLASS_MAX_LENGTH 6 |
#define FCT internal_fnmatch |
#define FOLD |
( |
|
c | ) |
((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c)) |
#define internal_function |
#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.
#define ISALNUM |
( |
|
c | ) |
(ISASCII (c) && isalnum (c)) |
#define ISALPHA |
( |
|
c | ) |
(ISASCII (c) && isalpha (c)) |
#define ISBLANK |
( |
|
c | ) |
((c) == ' ' || (c) == '\t') |
#define ISCNTRL |
( |
|
c | ) |
(ISASCII (c) && iscntrl (c)) |
#define ISDIGIT |
( |
|
c | ) |
(ISASCII (c) && isdigit (c)) |
#define ISGRAPH |
( |
|
c | ) |
(ISASCII (c) && isprint (c) && !isspace (c)) |
#define ISLOWER |
( |
|
c | ) |
(ISASCII (c) && islower (c)) |
#define ISPRINT |
( |
|
c | ) |
(ISASCII (c) && isprint (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 MEMCHR |
( |
|
S, |
|
|
|
C, |
|
|
|
N |
|
) |
| memchr (S, C, N) |
#define MEMPCPY |
( |
|
D, |
|
|
|
S, |
|
|
|
N |
|
) |
| __fnmatch_mempcpy (D, S, N) |
#define NO_LEADING_PERIOD |
( |
|
flags | ) |
((flags & (FNM_FILE_NAME | FNM_PERIOD)) == (FNM_FILE_NAME | FNM_PERIOD)) |
#define STRCAT |
( |
|
D, |
|
|
|
S |
|
) |
| strcat (D, S) |
#define STRCOLL |
( |
|
S1, |
|
|
|
S2 |
|
) |
| strcoll (S1, S2) |
#define STREQ |
( |
|
s1, |
|
|
|
s2 |
|
) |
| ((strcmp (s1, s2) == 0)) |
#define STRLEN |
( |
|
S | ) |
strlen (S) |
#define STRUCT fnmatch_struct |
#define UCHAR unsigned char |
Function Documentation
static void * __fnmatch_mempcpy |
( |
void * |
dest, |
|
|
const void * |
src, |
|
|
size_t |
n |
|
) |
| [static] |
int fnmatch |
( |
char * |
pattern, |
|
|
const char * |
string, |
|
|
int |
flags |
|
) |
| const |
Variable Documentation