Defines | Enumerations | Functions
curl_fnmatch.c File Reference
#include "curl_setup.h"
#include <curl/curl.h>
#include "curl_fnmatch.h"
#include "curl_memory.h"
#include "memdebug.h"
Include dependency graph for curl_fnmatch.c:

Go to the source code of this file.

Defines

#define CURLFNM_ALNUM   (CURLFNM_CHARSET_LEN + 1)
#define CURLFNM_ALPHA   (CURLFNM_CHARSET_LEN + 4)
#define CURLFNM_BLANK   (CURLFNM_CHARSET_LEN + 6)
#define CURLFNM_CHARSET_LEN   (sizeof(char) * 256)
#define CURLFNM_CHSET_SIZE   (CURLFNM_CHARSET_LEN + 15)
#define CURLFNM_DIGIT   (CURLFNM_CHARSET_LEN + 2)
#define CURLFNM_GRAPH   (CURLFNM_CHARSET_LEN + 8)
#define CURLFNM_LOWER   (CURLFNM_CHARSET_LEN + 7)
#define CURLFNM_NEGATE   CURLFNM_CHARSET_LEN
#define CURLFNM_PRINT   (CURLFNM_CHARSET_LEN + 5)
#define CURLFNM_SPACE   (CURLFNM_CHARSET_LEN + 9)
#define CURLFNM_UPPER   (CURLFNM_CHARSET_LEN + 10)
#define CURLFNM_XDIGIT   (CURLFNM_CHARSET_LEN + 3)
#define KEYLEN   10
#define SETCHARSET_FAIL   0
#define SETCHARSET_OK   1

Enumerations

enum  loop_state { CURLFNM_LOOP_DEFAULT = 0, CURLFNM_LOOP_BACKSLASH }
enum  parsekey_state { CURLFNM_PKW_INIT = 0, CURLFNM_PKW_DDOT }
enum  setcharset_state {
  CURLFNM_SCHS_DEFAULT = 0, CURLFNM_SCHS_MAYRANGE, CURLFNM_SCHS_MAYRANGE2, CURLFNM_SCHS_RIGHTBR,
  CURLFNM_SCHS_RIGHTBRLEFTBR
}

Functions

int Curl_fnmatch (void *ptr, const char *pattern, const char *string)
static int loop (const unsigned char *pattern, const unsigned char *string)
static int parsekeyword (unsigned char **pattern, unsigned char *charset)
static int setcharset (unsigned char **p, unsigned char *charset)

Define Documentation

#define CURLFNM_ALNUM   (CURLFNM_CHARSET_LEN + 1)

Definition at line 38 of file curl_fnmatch.c.

#define CURLFNM_ALPHA   (CURLFNM_CHARSET_LEN + 4)

Definition at line 41 of file curl_fnmatch.c.

#define CURLFNM_BLANK   (CURLFNM_CHARSET_LEN + 6)

Definition at line 43 of file curl_fnmatch.c.

#define CURLFNM_CHARSET_LEN   (sizeof(char) * 256)

Definition at line 33 of file curl_fnmatch.c.

Definition at line 34 of file curl_fnmatch.c.

#define CURLFNM_DIGIT   (CURLFNM_CHARSET_LEN + 2)

Definition at line 39 of file curl_fnmatch.c.

#define CURLFNM_GRAPH   (CURLFNM_CHARSET_LEN + 8)

Definition at line 45 of file curl_fnmatch.c.

#define CURLFNM_LOWER   (CURLFNM_CHARSET_LEN + 7)

Definition at line 44 of file curl_fnmatch.c.

Definition at line 36 of file curl_fnmatch.c.

#define CURLFNM_PRINT   (CURLFNM_CHARSET_LEN + 5)

Definition at line 42 of file curl_fnmatch.c.

#define CURLFNM_SPACE   (CURLFNM_CHARSET_LEN + 9)

Definition at line 46 of file curl_fnmatch.c.

#define CURLFNM_UPPER   (CURLFNM_CHARSET_LEN + 10)

Definition at line 47 of file curl_fnmatch.c.

#define CURLFNM_XDIGIT   (CURLFNM_CHARSET_LEN + 3)

Definition at line 40 of file curl_fnmatch.c.

#define KEYLEN   10
#define SETCHARSET_FAIL   0

Definition at line 68 of file curl_fnmatch.c.

#define SETCHARSET_OK   1

Definition at line 67 of file curl_fnmatch.c.


Enumeration Type Documentation

enum loop_state
Enumerator:
CURLFNM_LOOP_DEFAULT 
CURLFNM_LOOP_BACKSLASH 

Definition at line 49 of file curl_fnmatch.c.

Enumerator:
CURLFNM_PKW_INIT 
CURLFNM_PKW_DDOT 

Definition at line 62 of file curl_fnmatch.c.

Enumerator:
CURLFNM_SCHS_DEFAULT 
CURLFNM_SCHS_MAYRANGE 
CURLFNM_SCHS_MAYRANGE2 
CURLFNM_SCHS_RIGHTBR 
CURLFNM_SCHS_RIGHTBRLEFTBR 

Definition at line 54 of file curl_fnmatch.c.


Function Documentation

int Curl_fnmatch ( void *  ptr,
const char *  pattern,
const char *  string 
)

Definition at line 418 of file curl_fnmatch.c.

static int loop ( const unsigned char *  pattern,
const unsigned char *  string 
) [static]

Definition at line 311 of file curl_fnmatch.c.

static int parsekeyword ( unsigned char **  pattern,
unsigned char *  charset 
) [static]

Definition at line 70 of file curl_fnmatch.c.

static int setcharset ( unsigned char **  p,
unsigned char *  charset 
) [static]

Definition at line 127 of file curl_fnmatch.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08