G:/ScriptBasic/source/extensions/re/regex2.h File Reference

Go to the source code of this file.

Data Structures

struct  cset
struct  re_guts

Defines

#define MAGIC1   ((('r'^0200)<<8) | 'e')
#define OPRMASK   0xf8000000
#define OPDMASK   0x07ffffff
#define OPSHIFT   ((unsigned)27)
#define OP(n)   ((n)&OPRMASK)
#define OPND(n)   ((n)&OPDMASK)
#define SOP(op, opnd)   ((op)|(opnd))
#define OEND   (1<<OPSHIFT)
#define OCHAR   (2<<OPSHIFT)
#define OBOL   (3<<OPSHIFT)
#define OEOL   (4<<OPSHIFT)
#define OANY   (5<<OPSHIFT)
#define OANYOF   (6<<OPSHIFT)
#define OBACK_   (7<<OPSHIFT)
#define O_BACK   (8<<OPSHIFT)
#define OPLUS_   (9<<OPSHIFT)
#define O_PLUS   (10<<OPSHIFT)
#define OQUEST_   (11<<OPSHIFT)
#define O_QUEST   (12<<OPSHIFT)
#define OLPAREN   (13<<OPSHIFT)
#define ORPAREN   (14<<OPSHIFT)
#define OCH_   (15<<OPSHIFT)
#define OOR1   (16<<OPSHIFT)
#define OOR2   (17<<OPSHIFT)
#define O_CH   (18<<OPSHIFT)
#define OBOW   (19<<OPSHIFT)
#define OEOW   (20<<OPSHIFT)
#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)
#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
#define USEEOL   02
#define BAD   04
#define OUT   (CHAR_MAX+1)
#define ISWORD(c)   (isalnum(c) || (c) == '_')

Typedefs

typedef unsigned long sop
typedef long sopno
typedef unsigned char cat_t


Define Documentation

#define BAD   04
 

Definition at line 157 of file regex2.h.

Referenced by findmust(), pluscount(), and regexec().

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

Definition at line 129 of file regex2.h.

Referenced by p_b_eclass(), p_b_term(), and p_bracket().

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

Definition at line 131 of file regex2.h.

Referenced by firstch(), freezeset(), nch(), and p_bracket().

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

Definition at line 130 of file regex2.h.

Referenced by freeset(), and p_bracket().

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

Definition at line 173 of file regex2.h.

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

Definition at line 57 of file regex2.h.

Referenced by regexec(), and regfree().

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

Definition at line 144 of file regex2.h.

Referenced by regexec(), and regfree().

#define MCadd p,
cs,
cp   )     mcadd(p, cs, cp)
 

Definition at line 132 of file regex2.h.

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

Definition at line 134 of file regex2.h.

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

Definition at line 133 of file regex2.h.

#define O_BACK   (8<<OPSHIFT)
 

Definition at line 95 of file regex2.h.

Referenced by p_simp_re().

#define O_CH   (18<<OPSHIFT)
 

Definition at line 105 of file regex2.h.

Referenced by findmust(), p_ere_exp(), and repeat().

#define O_PLUS   (10<<OPSHIFT)
 

Definition at line 97 of file regex2.h.

Referenced by p_ere_exp(), p_simp_re(), pluscount(), and repeat().

#define O_QUEST   (12<<OPSHIFT)
 

Definition at line 99 of file regex2.h.

Referenced by findmust(), p_ere_exp(), and p_simp_re().

#define OANY   (5<<OPSHIFT)
 

Definition at line 92 of file regex2.h.

Referenced by p_ere_exp(), and p_simp_re().

#define OANYOF   (6<<OPSHIFT)
 

Definition at line 93 of file regex2.h.

Referenced by p_bracket().

#define OBACK_   (7<<OPSHIFT)
 

Definition at line 94 of file regex2.h.

Referenced by p_simp_re().

#define OBOL   (3<<OPSHIFT)
 

Definition at line 90 of file regex2.h.

Referenced by p_bre(), and p_ere_exp().

#define OBOW   (19<<OPSHIFT)
 

Definition at line 106 of file regex2.h.

Referenced by p_bracket().

#define OCH_   (15<<OPSHIFT)
 

Definition at line 102 of file regex2.h.

Referenced by findmust(), p_ere(), p_ere_exp(), and repeat().

#define OCHAR   (2<<OPSHIFT)
 

Definition at line 89 of file regex2.h.

Referenced by findmust(), and ordinary().

#define OEND   (1<<OPSHIFT)
 

Definition at line 88 of file regex2.h.

Referenced by findmust(), and pluscount().

#define OEOL   (4<<OPSHIFT)
 

Definition at line 91 of file regex2.h.

Referenced by p_bre(), and p_ere_exp().

#define OEOW   (20<<OPSHIFT)
 

Definition at line 107 of file regex2.h.

Referenced by p_bracket().

#define OLPAREN   (13<<OPSHIFT)
 

Definition at line 100 of file regex2.h.

Referenced by findmust(), p_ere_exp(), and p_simp_re().

#define OOR1   (16<<OPSHIFT)
 

Definition at line 103 of file regex2.h.

Referenced by p_ere(), p_ere_exp(), and repeat().

#define OOR2   (17<<OPSHIFT)
 

Definition at line 104 of file regex2.h.

Referenced by findmust(), p_ere(), p_ere_exp(), and repeat().

#define OP  )     ((n)&OPRMASK)
 

Definition at line 83 of file regex2.h.

Referenced by dofwd(), findmust(), p_simp_re(), and pluscount().

#define OPDMASK   0x07ffffff
 

Definition at line 81 of file regex2.h.

#define OPLUS_   (9<<OPSHIFT)
 

Definition at line 96 of file regex2.h.

Referenced by findmust(), p_ere_exp(), p_simp_re(), pluscount(), and repeat().

#define OPND  )     ((n)&OPDMASK)
 

Definition at line 84 of file regex2.h.

Referenced by findmust().

#define OPRMASK   0xf8000000
 

Definition at line 80 of file regex2.h.

#define OPSHIFT   ((unsigned)27)
 

Definition at line 82 of file regex2.h.

Referenced by doemit(), and dofwd().

#define OQUEST_   (11<<OPSHIFT)
 

Definition at line 98 of file regex2.h.

Referenced by findmust(), p_ere_exp(), and p_simp_re().

#define ORPAREN   (14<<OPSHIFT)
 

Definition at line 101 of file regex2.h.

Referenced by findmust(), p_ere_exp(), and p_simp_re().

#define OUT   (CHAR_MAX+1)
 

Definition at line 172 of file regex2.h.

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

Definition at line 85 of file regex2.h.

Referenced by doemit().

#define USEBOL   01
 

Definition at line 155 of file regex2.h.

Referenced by p_bre(), and p_ere_exp().

#define USEEOL   02
 

Definition at line 156 of file regex2.h.

Referenced by p_bre(), and p_ere_exp().


Typedef Documentation

typedef unsigned char cat_t
 

Definition at line 137 of file regex2.h.

typedef unsigned long sop
 

Definition at line 78 of file regex2.h.

typedef long sopno
 

Definition at line 79 of file regex2.h.


Generated on Sun Mar 12 23:56:37 2006 for ScriptBasic by  doxygen 1.4.6-NO