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 |
| |
| HRESULT | regexp_set_flags (regexp_t **, void *, heap_pool_t *, WORD) 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
| #define REG_MULTILINE 0x04 /* treat ^ and $ as begin and end of line */ |
◆ REG_STICKY
| #define REG_STICKY 0x08 /* only match starting at lastIndex */ |
◆ jsbytecode
◆ match_state_t
◆ RECapture
◆ regexp_t
◆ alloc_match_state()
Definition at line 72 of file regexp.h.
74{
77
81
84}
static void * heap_alloc(size_t len)
struct RECapture RECapture
void * heap_pool_alloc(heap_pool_t *, DWORD) __WINE_ALLOC_SIZE(2)
#define offsetof(TYPE, MEMBER)
◆ regexp_destroy()
Definition at line 3177 of file regexp.c.
3178{
3185 }
3187 }
3189}
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
Referenced by RegExp2_put_Pattern(), RegExp2_Release(), RegExp_destructor(), regexp_new(), and regexp_set_flags().
◆ regexp_execute()
Definition at line 3136 of file regexp.c.
3138{
3144
3146
3152
3155 WARN(
"InitMatch failed\n");
3158 }
3159
3163 WARN(
"MatchRegExp failed\n");
3165 }
3166
3170 }
3171
3175}
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 *)
heap_pool_t * heap_pool_mark(heap_pool_t *)
Referenced by do_regexp_match_next(), RegExp2_Execute(), and RegExp2_Test().
◆ regexp_new()
Definition at line 3191 of file regexp.c.
3193{
3197 size_t resize;
3201
3205
3214 state.parenCount = 0;
3215 state.classCount = 0;
3216 state.progLength = 0;
3217 state.treeDepth = 0;
3218 state.classBitmapsMem = 0;
3221
3222 if (
len != 0 && flat) {
3229
3232 } else {
3235 }
3238 if (!re)
3240
3249 }
3252 } else {
3254 }
3256 if (!endPC) {
3260 }
3262
3263
3264
3265
3266
3267 if ((
size_t)(endPC - re->
program) !=
state.progLength + 1) {
3272 if (tmp)
3273 re = tmp;
3274 }
3275
3280
3283 return re;
3284}
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)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Referenced by create_regexp(), RegExp2_Execute(), RegExp2_Test(), and regexp_set_flags().
◆ regexp_set_flags()
Definition at line 3290 of file regexp.c.
3291{
3295
3296 if(!new_regexp)
3298
3300 *regexp = new_regexp;
3301 }else {
3303 }
3304
3306}
regexp_t * regexp_new(void *cx, heap_pool_t *pool, const WCHAR *str, DWORD str_len, WORD flags, BOOL flat)
Referenced by RegExp2_Execute(), and RegExp2_Test().