package quickjs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Bindings for QuickJS (a Javascript Engine to be embedded https://bellard.org/quickjs)
Install
dune-project
Dependency
Authors
Maintainers
Sources
quickjs-0.6.0.tbz
sha256=24e60ef65737c2b8e762b98fbdbc836380425c35c5b3ffae657a14671e51d959
sha512=3868ca89255ebc03ea8a9ba6fe1604c8c5aad5060274d518be99a3300883ebeae864b8b68bf3782875c527a41828f40b3cb75d50179d6802ec0eafd59591af4f
doc/src/quickjs.c/libregexp.ml.html
Source file libregexp.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42(** Low-level bindings to QuickJS's libregexp - Regular Expression Engine ECMAScript-compatible regex engine with Unicode support. These are raw C bindings; for a higher-level API, use [Quickjs.RegExp]. *) (** Compile a regular expression pattern into bytecode. Returns pointer to bytecode buffer, or NULL on error with message in error_msg. The buffer must be released with [bytecode_free]. *) let compile plen error_msg error_msg_size buf buf_len flags opaque = Quickjs_bindings.C.Functions.lre_compile plen error_msg error_msg_size buf buf_len flags opaque (** Execute a compiled regex against input string. [deadline] is an optional pointer to a monotonic deadline in milliseconds (see [now_ms]). Returns: 1 = match, 0 = no match, -1 = memory error, -2 = timeout, -3 = invalid bytecode *) let exec capture bc_buf cbuf cindex clen cbuf_type deadline = Quickjs_bindings.C.Functions.lre_exec capture bc_buf cbuf cindex clen cbuf_type deadline (** Free a bytecode buffer returned by [compile] *) let bytecode_free bc_buf = Quickjs_bindings.C.Functions.lre_bytecode_free bc_buf (** Monotonic clock in milliseconds; basis for [exec] deadlines *) let now_ms () = Quickjs_bindings.C.Functions.lre_now_ms () (** Get number of capture groups (including group 0 for full match) *) let get_capture_count bc_buf = Quickjs_bindings.C.Functions.lre_get_capture_count bc_buf let get_alloc_count bc_buf = Quickjs_bindings.C.Functions.lre_get_alloc_count bc_buf (** Get pointer to the engine-owned group-name records *) let get_groupnames bc_buf = Quickjs_bindings.C.Functions.lre_get_groupnames bc_buf let get_groupname bc_buf group_index = Quickjs_bindings.C.Functions.lre_get_groupname bc_buf group_index (** Get flags from compiled bytecode *) let get_flags bc_buf = Quickjs_bindings.C.Functions.lre_get_flags bc_buf
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>