php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
fnmatch.h File Reference
#include "php.h"

Go to the source code of this file.

Macros

#define FNM_NOMATCH   1 /* Match failed. */
 
#define FNM_NOESCAPE   0x01 /* Disable backslash escaping. */
 
#define FNM_PATHNAME   0x02 /* Slash must be matched by slash. */
 
#define FNM_PERIOD   0x04 /* Period must be matched by period. */
 
#define FNM_LEADING_DIR   0x08 /* Ignore /<tail> after Imatch. */
 
#define FNM_CASEFOLD   0x10 /* Case insensitive search. */
 
#define FNM_PREFIX_DIRS   0x20 /* Directory prefixes of pattern match too. */
 

Functions

PHPAPI int fnmatch (const char *pattern, const char *string, int flags)
 

Macro Definition Documentation

◆ FNM_CASEFOLD

#define FNM_CASEFOLD   0x10 /* Case insensitive search. */

Definition at line 48 of file fnmatch.h.

◆ FNM_LEADING_DIR

#define FNM_LEADING_DIR   0x08 /* Ignore /<tail> after Imatch. */

Definition at line 47 of file fnmatch.h.

◆ FNM_NOESCAPE

#define FNM_NOESCAPE   0x01 /* Disable backslash escaping. */

Definition at line 44 of file fnmatch.h.

◆ FNM_NOMATCH

#define FNM_NOMATCH   1 /* Match failed. */

Definition at line 42 of file fnmatch.h.

◆ FNM_PATHNAME

#define FNM_PATHNAME   0x02 /* Slash must be matched by slash. */

Definition at line 45 of file fnmatch.h.

◆ FNM_PERIOD

#define FNM_PERIOD   0x04 /* Period must be matched by period. */

Definition at line 46 of file fnmatch.h.

◆ FNM_PREFIX_DIRS

#define FNM_PREFIX_DIRS   0x20 /* Directory prefixes of pattern match too. */

Definition at line 49 of file fnmatch.h.

Function Documentation

◆ fnmatch()

PHPAPI int fnmatch ( const char * pattern,
const char * string,
int flags )

Definition at line 58 of file fnmatch.c.