#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "Match.h"
Go to the source code of this file.
Defines | |
#define | BOL '^' |
#define | EOL '$' |
#define | ANY '.' |
#define | CCL '[' |
#define | CCLEND ']' |
#define | NCCL '^' |
#define | CLOSURE '*' |
#define | PCLOSE '+' |
#define | OPT '?' |
#define | ISHEXDIGIT(x) isxdigit((unsigned char)x) |
#define | ISOCTDIGIT(x) ('0'<=(x) && (x)<='7') |
#define | MAPSIZE 16 |
#define | E_NONE 0 |
#define | E_ILLEGAL 1 |
#define | E_NOMEM 2 |
#define | E_PAT 3 |
Enumerations | |
enum | Eaction |
Functions | |
void | ADVANCE (const Pattern_t *&pat) |
static void | SETBIT (unsigned char b, Pattern_t *map) |
static int | TSTBIT (unsigned char b, const Pattern_t *map) |
static const char * | doccl (Pattern_t *, const char *) |
static int | hex2bin (int) |
static int | oct2bin (int) |
static int | omatch (const char **, size_t *, const Pattern_t *, const char *) |
static const char * | patcmp (const char *, size_t, const Pattern_t *, const char *) |
static int | esc (const char **) |
int | Makepat (const char *exp, Pattern_t *pat, int maxpat) |
const char * | Matchs (const char *str, size_t slen, const Pattern_t *pat, const char **startpat) |
#define MAPSIZE 16 |
#define OPT '?' |
Definition at line 38 of file Match.cxx.
Referenced by Makepat(), ROOT::Math::IntegOptionsUtil::Print(), and ROOT::Math::IntegOptionsUtil::PrintDefault().
void ADVANCE | ( | const Pattern_t *& | pat | ) | [inline] |
static const char * doccl | ( | Pattern_t * | , | |
const char * | ||||
) | [static] |
static int esc | ( | const char ** | ) | [static] |
Definition at line 419 of file Match.cxx.
References hex2bin(), ISHEXDIGIT, ISOCTDIGIT, and oct2bin().
int Makepat | ( | const char * | exp, | |
Pattern_t * | pat, | |||
int | maxpat | |||
) |
static void SETBIT | ( | unsigned char | b, | |
Pattern_t * | map | |||
) | [static] |
static int TSTBIT | ( | unsigned char | b, | |
const Pattern_t * | map | |||
) | [static] |