Go to the source code of this file.
|
regexp_t * | regexp_new (void *, heap_pool_t *, const WCHAR *, DWORD, WORD, BOOL) DECLSPEC_HIDDEN |
|
void | regexp_destroy (regexp_t *) DECLSPEC_HIDDEN |
|
HRESULT | regexp_execute (regexp_t *, void *, heap_pool_t *, const WCHAR *, DWORD, match_state_t *) DECLSPEC_HIDDEN |
|
static match_state_t * | alloc_match_state (regexp_t *regexp, heap_pool_t *pool, const WCHAR *pos) |
|
◆ REG_FOLD
◆ REG_GLOB
◆ REG_MULTILINE
◆ REG_STICKY
#define REG_STICKY 0x08 /* only match starting at lastIndex */ |
◆ jsbytecode
◆ match_state_t
◆ RECapture
◆ regexp_t
◆ alloc_match_state()
◆ regexp_destroy()
Definition at line 3181 of file regexp.c.
3182{
3189 }
3191 }
3193}
static BOOL heap_free(void *mem)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct RECharSet * classList
◆ regexp_execute()
Definition at line 3140 of file regexp.c.
3142{
3148
3150
3156
3159 WARN(
"InitMatch failed\n");
3162 }
3163
3167 WARN(
"MatchRegExp failed\n");
3169 }
3170
3174 }
3175
3179}
static HRESULT InitMatch(regexp_t *re, void *cx, heap_pool_t *pool, REGlobalData *gData)
static match_state_t * MatchRegExp(REGlobalData *gData, match_state_t *x)
void heap_pool_clear(heap_pool_t *) DECLSPEC_HIDDEN
heap_pool_t * heap_pool_mark(heap_pool_t *) DECLSPEC_HIDDEN
◆ regexp_new()
Definition at line 3195 of file regexp.c.
3197{
3201 size_t resize;
3205
3209
3218 state.parenCount = 0;
3219 state.classCount = 0;
3220 state.progLength = 0;
3221 state.treeDepth = 0;
3222 state.classBitmapsMem = 0;
3225
3226 if (
len != 0 && flat) {
3233
3236 } else {
3239 }
3242 if (!re)
3244
3253 }
3256 } else {
3258 }
3260 if (!endPC) {
3264 }
3266
3267
3268
3269
3270
3271 if ((
size_t)(endPC - re->
program) !=
state.progLength + 1) {
3276 if (tmp)
3277 re = tmp;
3278 }
3279
3284
3287 return re;
3288}
static void * heap_realloc(void *mem, size_t len)
static size_t GetCompactIndexWidth(size_t index)
static BOOL ParseRegExp(CompilerState *)
static jsbytecode * EmitREBytecode(CompilerState *state, regexp_t *re, size_t treeDepth, jsbytecode *pc, RENode *t)
#define CLASS_BITMAPS_MEM_LIMIT
void regexp_destroy(regexp_t *re)
static RENode * NewRENode(CompilerState *state, REOp op)