Go to the documentation of this file.
38 #ifndef LLVM_SUPPORT_REGEX2_H
39 #define LLVM_SUPPORT_REGEX2_H
47 #define MAGIC1 ((('r'^0200)<<8) | 'e')
68 typedef unsigned long sop;
70 #define OPRMASK 0xf8000000LU
71 #define OPDMASK 0x07ffffffLU
72 #define OPSHIFT ((unsigned)27)
73 #define OP(n) ((n)&OPRMASK)
74 #define OPND(n) ((n)&OPDMASK)
75 #define SOP(op, opnd) ((op)|(opnd))
78 #define OEND (1LU<<OPSHIFT)
79 #define OCHAR (2LU<<OPSHIFT)
80 #define OBOL (3LU<<OPSHIFT)
81 #define OEOL (4LU<<OPSHIFT)
82 #define OANY (5LU<<OPSHIFT)
83 #define OANYOF (6LU<<OPSHIFT)
84 #define OBACK_ (7LU<<OPSHIFT)
85 #define O_BACK (8LU<<OPSHIFT)
86 #define OPLUS_ (9LU<<OPSHIFT)
87 #define O_PLUS (10LU<<OPSHIFT)
88 #define OQUEST_ (11LU<<OPSHIFT)
89 #define O_QUEST (12LU<<OPSHIFT)
90 #define OLPAREN (13LU<<OPSHIFT)
91 #define ORPAREN (14LU<<OPSHIFT)
92 #define OCH_ (15LU<<OPSHIFT)
93 #define OOR1 (16LU<<OPSHIFT)
94 #define OOR2 (17LU<<OPSHIFT)
95 #define O_CH (18LU<<OPSHIFT)
96 #define OBOW (19LU<<OPSHIFT)
97 #define OEOW (20LU<<OPSHIFT)
119 #define CHadd(cs, c) ((cs)->ptr[(uch)(c)] |= (cs)->mask, (cs)->hash += (c))
120 #define CHsub(cs, c) ((cs)->ptr[(uch)(c)] &= ~(cs)->mask, (cs)->hash -= (c))
121 #define CHIN(cs, c) ((cs)->ptr[(uch)(c)] & (cs)->mask)
122 #define MCadd(p, cs, cp) mcadd(p, cs, cp)
123 #define MCsub(p, cs, cp) mcsub(p, cs, cp)
124 #define MCin(p, cs, cp) mcin(p, cs, cp)
134 # define MAGIC2 ((('R'^0200)<<8)|'E')
147 # define REGEX_BAD 04
162 #define OUT (CHAR_MAX+1)
163 #define ISWORD(c) (isalnum(c&0xff) || (c) == '_')