ReactOS 0.4.15-dev-7918-g2a2556c
patmatch.h File Reference
#include <schily/mconfig.h>
Include dependency graph for patmatch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ALT   '!' /* Alternation in match i.e. this!that!the_other */
 
#define REP   '#' /* Any number of occurrences of the following expr */
 
#define NIL   '%' /* Empty string (exactly nothing) */
 
#define STAR   '*' /* Any number of any character (equivalent of #?) */
 
#define ANY   '?' /* Any one character */
 
#define QUOTE   '\\' /* Quotes the next character */
 
#define LBRACK   '{' /* Begin of precedence grouping */
 
#define RBRACK   '}' /* End of precedence grouping */
 
#define LCLASS   '[' /* Begin of character set */
 
#define RCLASS   ']' /* End of character set */
 
#define NOT   '^' /* If first in set: invert set content */
 
#define RANGE   '-' /* Range notation in sets */
 
#define START   '^' /* Begin of a line */
 
#define END   '$' /* End of a line */
 
#define casePAT
 
#define MAXPAT   128 /* Max length of pattern for opatmatch()/opatlmatch() */
 

Functions

int patcompile __PR ((const unsigned char *__pat, int __patlen, int *__aux))
 
unsigned char *opatmatch __PR ((const unsigned char *__pat, const int *__aux, const unsigned char *__str, int __soff, int __slen, int __alt))
 
unsigned char *patmatch __PR ((const unsigned char *__pat, const int *__aux, const unsigned char *__str, int __soff, int __slen, int __alt, int __state[]))
 

Macro Definition Documentation

◆ ALT

#define ALT   '!' /* Alternation in match i.e. this!that!the_other */

Definition at line 51 of file patmatch.h.

◆ ANY

#define ANY   '?' /* Any one character */

Definition at line 55 of file patmatch.h.

◆ casePAT

#define casePAT
Value:
case ALT: case REP: case NIL: case STAR: case ANY: \
case QUOTE: case LBRACK: case RBRACK: \
case LCLASS: case RCLASS: case START: case END:
#define LBRACK
Definition: patmatch.h:57
#define NIL
Definition: patmatch.h:53
#define END
Definition: patmatch.h:64
#define START
Definition: patmatch.h:63
#define REP
Definition: patmatch.h:52
#define ANY
Definition: patmatch.h:55
#define QUOTE
Definition: patmatch.h:56
#define RCLASS
Definition: patmatch.h:60
#define LCLASS
Definition: patmatch.h:59
#define STAR
Definition: patmatch.h:54
#define ALT
Definition: patmatch.h:51
#define RBRACK
Definition: patmatch.h:58

Definition at line 74 of file patmatch.h.

◆ END

#define END   '$' /* End of a line */

Definition at line 64 of file patmatch.h.

◆ LBRACK

#define LBRACK   '{' /* Begin of precedence grouping */

Definition at line 57 of file patmatch.h.

◆ LCLASS

#define LCLASS   '[' /* Begin of character set */

Definition at line 59 of file patmatch.h.

◆ MAXPAT

#define MAXPAT   128 /* Max length of pattern for opatmatch()/opatlmatch() */

Definition at line 79 of file patmatch.h.

◆ NIL

#define NIL   '%' /* Empty string (exactly nothing) */

Definition at line 53 of file patmatch.h.

◆ NOT

#define NOT   '^' /* If first in set: invert set content */

Definition at line 61 of file patmatch.h.

◆ QUOTE

#define QUOTE   '\\' /* Quotes the next character */

Definition at line 56 of file patmatch.h.

◆ RANGE

#define RANGE   '-' /* Range notation in sets */

Definition at line 62 of file patmatch.h.

◆ RBRACK

#define RBRACK   '}' /* End of precedence grouping */

Definition at line 58 of file patmatch.h.

◆ RCLASS

#define RCLASS   ']' /* End of character set */

Definition at line 60 of file patmatch.h.

◆ REP

#define REP   '#' /* Any number of occurrences of the following expr */

Definition at line 52 of file patmatch.h.

◆ STAR

#define STAR   '*' /* Any number of any character (equivalent of #?) */

Definition at line 54 of file patmatch.h.

◆ START

#define START   '^' /* Begin of a line */

Definition at line 63 of file patmatch.h.

Function Documentation

◆ __PR() [1/3]

unsigned char *opatmatch __PR ( (const unsigned char *__pat, const int *__aux, const unsigned char *__str, int __soff, int __slen, int __alt)  )

◆ __PR() [2/3]

unsigned char *patmatch __PR ( (const unsigned char *__pat, const int *__aux, const unsigned char *__str, int __soff, int __slen, int __alt, int __state[])  )

◆ __PR() [3/3]

int patcompile __PR ( (const unsigned char *__pat, int __patlen, int *__aux)  )