Back to index

php5  5.3.10
Classes | Defines | Typedefs
regex2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cset
struct  re_guts

Defines

#define MAGIC1   ((('r'^0200)<<8) | 'e')
#define OPRMASK   0x7c000000
#define OPDMASK   0x03ffffff
#define OPSHIFT   (26)
#define OP(n)   ((n)&OPRMASK)
#define OPND(n)   ((n)&OPDMASK)
#define SOP(op, opnd)   ((op)|(opnd))
#define OEND   (1<<OPSHIFT) /* endmarker - */
#define OCHAR   (2<<OPSHIFT) /* character unsigned char */
#define OBOL   (3<<OPSHIFT) /* left anchor - */
#define OEOL   (4<<OPSHIFT) /* right anchor - */
#define OANY   (5<<OPSHIFT) /* . - */
#define OANYOF   (6<<OPSHIFT) /* [...] set number */
#define OBACK_   (7<<OPSHIFT) /* begin \d paren number */
#define O_BACK   (8<<OPSHIFT) /* end \d paren number */
#define OPLUS_   (9<<OPSHIFT) /* + prefix fwd to suffix */
#define O_PLUS   (10<<OPSHIFT) /* + suffix back to prefix */
#define OQUEST_   (11<<OPSHIFT) /* ? prefix fwd to suffix */
#define O_QUEST   (12<<OPSHIFT) /* ? suffix back to prefix */
#define OLPAREN   (13<<OPSHIFT) /* ( fwd to ) */
#define ORPAREN   (14<<OPSHIFT) /* ) back to ( */
#define OCH_   (15<<OPSHIFT) /* begin choice fwd to OOR2 */
#define OOR1   (16<<OPSHIFT) /* | pt. 1 back to OOR1 or OCH_ */
#define OOR2   (17<<OPSHIFT) /* | pt. 2 fwd to OOR2 or O_CH */
#define O_CH   (18<<OPSHIFT) /* end choice back to OOR1 */
#define OBOW   (19<<OPSHIFT) /* begin word - */
#define OEOW   (20<<OPSHIFT) /* end word - */
#define CHadd(cs, c)   ((cs)->ptr[(uch)(c)] |= (cs)->mask, (cs)->hash += (c))
#define CHsub(cs, c)   ((cs)->ptr[(uch)(c)] &= ~(cs)->mask, (cs)->hash -= (c))
#define CHIN(cs, c)   ((cs)->ptr[(uch)(c)] & (cs)->mask)
#define MCadd(p, cs, cp)   mcadd(p, cs, cp) /* regcomp() internal fns */
#define MCsub(p, cs, cp)   mcsub(p, cs, cp)
#define MCin(p, cs, cp)   mcin(p, cs, cp)
#define MAGIC2   ((('R'^0200)<<8)|'E')
#define USEBOL   01 /* used ^ */
#define USEEOL   02 /* used $ */
#define BAD   04 /* something wrong */
#define OUT   (UCHAR_MAX+1) /* a non-character value */
#define ISWORD(c)   (isalnum(c) || (c) == '_')

Typedefs

typedef long sop
typedef long sopno
typedef unsigned char cat_t

Class Documentation

struct cset

Definition at line 88 of file regex2.h.

Class Members
uch hash
uch mask
unsigned char * multis
uch * ptr
size_t smultis
struct re_guts

Definition at line 109 of file regex2.h.

Collaboration diagram for re_guts:
Class Members
int backrefs
cat_t * categories
cat_t catspace
int cflags
int csetsize
sopno firststate
int iflags
sopno laststate
int magic
int mlen
unsigned char * must
int nbol
int ncategories
int ncsets
int neol
sopno nplus
sopno nstates
size_t nsub
uch * setbits
cset * sets
sop * strip

Define Documentation

#define BAD   04 /* something wrong */

Definition at line 124 of file regex2.h.

#define CHadd (   cs,
 
)    ((cs)->ptr[(uch)(c)] |= (cs)->mask, (cs)->hash += (c))

Definition at line 96 of file regex2.h.

#define CHIN (   cs,
 
)    ((cs)->ptr[(uch)(c)] & (cs)->mask)

Definition at line 98 of file regex2.h.

#define CHsub (   cs,
 
)    ((cs)->ptr[(uch)(c)] &= ~(cs)->mask, (cs)->hash -= (c))

Definition at line 97 of file regex2.h.

#define ISWORD (   c)    (isalnum(c) || (c) == '_')

Definition at line 140 of file regex2.h.

#define MAGIC1   ((('r'^0200)<<8) | 'e')

Definition at line 24 of file regex2.h.

#define MAGIC2   ((('R'^0200)<<8)|'E')

Definition at line 111 of file regex2.h.

#define MCadd (   p,
  cs,
  cp 
)    mcadd(p, cs, cp) /* regcomp() internal fns */

Definition at line 99 of file regex2.h.

#define MCin (   p,
  cs,
  cp 
)    mcin(p, cs, cp)

Definition at line 101 of file regex2.h.

#define MCsub (   p,
  cs,
  cp 
)    mcsub(p, cs, cp)

Definition at line 100 of file regex2.h.

#define O_BACK   (8<<OPSHIFT) /* end \d paren number */

Definition at line 62 of file regex2.h.

#define O_CH   (18<<OPSHIFT) /* end choice back to OOR1 */

Definition at line 72 of file regex2.h.

#define O_PLUS   (10<<OPSHIFT) /* + suffix back to prefix */

Definition at line 64 of file regex2.h.

#define O_QUEST   (12<<OPSHIFT) /* ? suffix back to prefix */

Definition at line 66 of file regex2.h.

#define OANY   (5<<OPSHIFT) /* . - */

Definition at line 59 of file regex2.h.

#define OANYOF   (6<<OPSHIFT) /* [...] set number */

Definition at line 60 of file regex2.h.

#define OBACK_   (7<<OPSHIFT) /* begin \d paren number */

Definition at line 61 of file regex2.h.

#define OBOL   (3<<OPSHIFT) /* left anchor - */

Definition at line 57 of file regex2.h.

#define OBOW   (19<<OPSHIFT) /* begin word - */

Definition at line 73 of file regex2.h.

#define OCH_   (15<<OPSHIFT) /* begin choice fwd to OOR2 */

Definition at line 69 of file regex2.h.

#define OCHAR   (2<<OPSHIFT) /* character unsigned char */

Definition at line 56 of file regex2.h.

#define OEND   (1<<OPSHIFT) /* endmarker - */

Definition at line 55 of file regex2.h.

#define OEOL   (4<<OPSHIFT) /* right anchor - */

Definition at line 58 of file regex2.h.

#define OEOW   (20<<OPSHIFT) /* end word - */

Definition at line 74 of file regex2.h.

#define OLPAREN   (13<<OPSHIFT) /* ( fwd to ) */

Definition at line 67 of file regex2.h.

#define OOR1   (16<<OPSHIFT) /* | pt. 1 back to OOR1 or OCH_ */

Definition at line 70 of file regex2.h.

#define OOR2   (17<<OPSHIFT) /* | pt. 2 fwd to OOR2 or O_CH */

Definition at line 71 of file regex2.h.

#define OP (   n)    ((n)&OPRMASK)

Definition at line 50 of file regex2.h.

#define OPDMASK   0x03ffffff

Definition at line 48 of file regex2.h.

#define OPLUS_   (9<<OPSHIFT) /* + prefix fwd to suffix */

Definition at line 63 of file regex2.h.

#define OPND (   n)    ((n)&OPDMASK)

Definition at line 51 of file regex2.h.

#define OPRMASK   0x7c000000

Definition at line 47 of file regex2.h.

#define OPSHIFT   (26)

Definition at line 49 of file regex2.h.

#define OQUEST_   (11<<OPSHIFT) /* ? prefix fwd to suffix */

Definition at line 65 of file regex2.h.

#define ORPAREN   (14<<OPSHIFT) /* ) back to ( */

Definition at line 68 of file regex2.h.

#define OUT   (UCHAR_MAX+1) /* a non-character value */

Definition at line 139 of file regex2.h.

#define SOP (   op,
  opnd 
)    ((op)|(opnd))

Definition at line 52 of file regex2.h.

#define USEBOL   01 /* used ^ */

Definition at line 122 of file regex2.h.

#define USEEOL   02 /* used $ */

Definition at line 123 of file regex2.h.


Typedef Documentation

typedef unsigned char cat_t

Definition at line 104 of file regex2.h.

typedef long sop

Definition at line 45 of file regex2.h.

typedef long sopno

Definition at line 46 of file regex2.h.