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.4.2.tbz
sha256=594fac60b9273af7e1903f0689efa353121309d8de911376f91966c32cd3ab7f
sha512=68beb126919a214fa9e46d84566c97e6ff3667c6c4478f352f1145e5bf1888b2a5eaca9855f39d734b2e9dc5bc0c7650f45679d177d546a2b0ba53dced5f2d1f
doc/quickjs.c/Libregexp/index.html
Module LibregexpSource
Low-level bindings to QuickJS's libregexp - Regular Expression Engine
ES2023-compliant regex engine with Unicode support. These are raw C bindings; for a higher-level API, use Quickjs.RegExp.
Source
val compile :
int Ctypes_static.ptr ->
char Ctypes_static.ptr ->
int ->
string Ctypes_static.ocaml ->
Unsigned.size_t ->
int ->
unit Ctypes_static.ptr ->
Unsigned.uint8 Ctypes_static.ptr
Bindings.Libregexp__c_generated_functions__Function_description__Functions.returnCompile a regular expression pattern into bytecode. Returns pointer to bytecode buffer, or NULL on error with message in error_msg.
Source
val exec :
Unsigned.uint8 Ctypes_static.ptr Ctypes_static.ptr ->
Unsigned.uint8 Ctypes_static.ptr ->
Unsigned.uint8 Ctypes_static.ptr ->
int ->
int ->
int ->
unit Ctypes_static.ptr ->
int
Bindings.Libregexp__c_generated_functions__Function_description__Functions.returnExecute a compiled regex against input string. Returns: 1 = match, 0 = no match, -1 = error
Source
val get_capture_count :
Unsigned.uint8 Ctypes_static.ptr ->
int
Bindings.Libregexp__c_generated_functions__Function_description__Functions.returnGet number of capture groups (including group 0 for full match)
Source
val get_groupnames :
Unsigned.uint8 Ctypes_static.ptr ->
char Ctypes_static.ptr option
Bindings.Libregexp__c_generated_functions__Function_description__Functions.returnGet pointer to null-terminated group names
Source
val get_flags :
Unsigned.uint8 Ctypes_static.ptr ->
int
Bindings.Libregexp__c_generated_functions__Function_description__Functions.returnGet flags from compiled bytecode
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>