Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Data Structures | |
struct | duk_re_matcher_ctx |
struct | duk_re_compiler_ctx |
Macros | |
#define | DUK_RE_MAX_ATOM_COPIES 1000 |
#define | DUK_RE_COMPILE_TOKEN_LIMIT 100000000L /* 1e8 */ |
#define | DUK_RE_EXECUTE_STEPS_LIMIT 1000000000L /* 1e9 */ |
#define | DUK_REOP_MATCH 1 |
#define | DUK_REOP_CHAR 2 |
#define | DUK_REOP_PERIOD 3 |
#define | DUK_REOP_RANGES 4 |
#define | DUK_REOP_INVRANGES 5 |
#define | DUK_REOP_JUMP 6 |
#define | DUK_REOP_SPLIT1 7 |
#define | DUK_REOP_SPLIT2 8 |
#define | DUK_REOP_SQMINIMAL 9 |
#define | DUK_REOP_SQGREEDY 10 |
#define | DUK_REOP_SAVE 11 |
#define | DUK_REOP_WIPERANGE 12 |
#define | DUK_REOP_LOOKPOS 13 |
#define | DUK_REOP_LOOKNEG 14 |
#define | DUK_REOP_BACKREFERENCE 15 |
#define | DUK_REOP_ASSERT_START 16 |
#define | DUK_REOP_ASSERT_END 17 |
#define | DUK_REOP_ASSERT_WORD_BOUNDARY 18 |
#define | DUK_REOP_ASSERT_NOT_WORD_BOUNDARY 19 |
#define | DUK_RE_FLAG_GLOBAL (1 << 0) |
#define | DUK_RE_FLAG_IGNORE_CASE (1 << 1) |
#define | DUK_RE_FLAG_MULTILINE (1 << 2) |
Functions | |
DUK_INTERNAL_DECL void | duk_regexp_compile (duk_hthread *thr) |
DUK_INTERNAL_DECL void | duk_regexp_create_instance (duk_hthread *thr) |
DUK_INTERNAL_DECL void | duk_regexp_match (duk_hthread *thr) |
DUK_INTERNAL_DECL void | duk_regexp_match_force_global (duk_hthread *thr) |
#define DUK_RE_COMPILE_TOKEN_LIMIT 100000000L /* 1e8 */ |
Definition at line 12 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_RE_EXECUTE_STEPS_LIMIT 1000000000L /* 1e9 */ |
Definition at line 15 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_RE_FLAG_GLOBAL (1 << 0) |
Definition at line 39 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_RE_FLAG_IGNORE_CASE (1 << 1) |
Definition at line 40 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_RE_FLAG_MULTILINE (1 << 2) |
Definition at line 41 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_RE_MAX_ATOM_COPIES 1000 |
Definition at line 9 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_ASSERT_END 17 |
Definition at line 34 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_ASSERT_NOT_WORD_BOUNDARY 19 |
Definition at line 36 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_ASSERT_START 16 |
Definition at line 33 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_ASSERT_WORD_BOUNDARY 18 |
Definition at line 35 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_BACKREFERENCE 15 |
Definition at line 32 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_CHAR 2 |
Definition at line 19 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_INVRANGES 5 |
Definition at line 22 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_JUMP 6 |
Definition at line 23 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_LOOKNEG 14 |
Definition at line 31 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_LOOKPOS 13 |
Definition at line 30 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_MATCH 1 |
Definition at line 18 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_PERIOD 3 |
Definition at line 20 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_RANGES 4 |
Definition at line 21 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_SAVE 11 |
Definition at line 28 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_SPLIT1 7 |
Definition at line 24 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_SPLIT2 8 |
Definition at line 25 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_SQGREEDY 10 |
Definition at line 27 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_SQMINIMAL 9 |
Definition at line 26 of file duktape-1.8.0/src-separate/duk_regexp.h.
#define DUK_REOP_WIPERANGE 12 |
Definition at line 29 of file duktape-1.8.0/src-separate/duk_regexp.h.
DUK_INTERNAL_DECL void duk_regexp_compile | ( | duk_hthread * | thr | ) |
Definition at line 78146 of file duktape-1.5.2/src-noline/duktape.c.
References duk_re_compiler_ctx::bw, duk_re_compiler_ctx::captures, duk__append_u32(), duk__create_escaped_source(), duk__insert_u32(), duk__parse_disjunction(), duk__parse_regexp_flags(), DUK__RE_INITIAL_BUFSIZE, DUK_ASSERT, DUK_BW_COMPACT, DUK_BW_INIT_PUSHBUF, DUK_DD, DUK_DDPRINT, DUK_ERROR_SYNTAX, duk_get_tval(), DUK_HSTRING_GET_BYTELEN, DUK_HSTRING_GET_DATA, DUK_LEXER_INITCTX, DUK_LEXER_SETPOINT, DUK_MEMZERO, DUK_RE_COMPILE_TOKEN_LIMIT, duk_remove(), DUK_REOP_MATCH, DUK_REOP_SAVE, duk_require_hstring(), DUK_STR_INVALID_BACKREFS, duk_to_string(), DUK_USE_REGEXP_COMPILER_RECLIMIT, duk_re_compiler_ctx::highest_backref, duk_lexer_ctx::input, duk_lexer_ctx::input_length, duk_re_compiler_ctx::lex, duk_lexer_point::line, NULL, duk_lexer_point::offset, duk_re_compiler_ctx::re_flags, duk_re_compiler_ctx::recursion_limit, duk_lexer_ctx::thr, duk_re_compiler_ctx::thr, and duk_lexer_ctx::token_limit.
Referenced by duk__expr_nud(), and duk_bi_regexp_constructor().
DUK_INTERNAL_DECL void duk_regexp_create_instance | ( | duk_hthread * | thr | ) |
Definition at line 78266 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_BIDX_REGEXP_PROTOTYPE, duk_get_hobject(), duk_get_hstring(), DUK_HOBJECT_CLASS_REGEXP, DUK_HOBJECT_SET_CLASS_NUMBER, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, DUK_HSTRING_GET_BYTELEN, DUK_HSTRING_GET_CHARLEN, DUK_HSTRING_GET_DATA, duk_insert(), DUK_PROPDESC_FLAGS_NONE, DUK_PROPDESC_FLAGS_W, duk_push_boolean(), duk_push_int(), duk_push_object(), DUK_RE_FLAG_GLOBAL, DUK_RE_FLAG_IGNORE_CASE, DUK_RE_FLAG_MULTILINE, DUK_STRIDX_GLOBAL, DUK_STRIDX_IGNORE_CASE, DUK_STRIDX_INT_BYTECODE, DUK_STRIDX_LAST_INDEX, DUK_STRIDX_MULTILINE, DUK_STRIDX_SOURCE, duk_xdef_prop_stridx(), and NULL.
Referenced by duk__js_execute_bytecode_inner(), and duk_bi_regexp_constructor().
DUK_INTERNAL_DECL void duk_regexp_match | ( | duk_hthread * | thr | ) |
Definition at line 79315 of file duktape-1.5.2/src-noline/duktape.c.
References duk__regexp_match_helper().
Referenced by duk_bi_regexp_prototype_exec(), duk_bi_regexp_prototype_test(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), and duk_bi_string_prototype_search().
DUK_INTERNAL_DECL void duk_regexp_match_force_global | ( | duk_hthread * | thr | ) |
Definition at line 79322 of file duktape-1.5.2/src-noline/duktape.c.
References duk__regexp_match_helper().
Referenced by duk_bi_string_prototype_split().