package quickjs

  1. Overview
  2. Docs
Bindings for QuickJS (a Javascript Engine to be embedded https://bellard.org/quickjs)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

quickjs-0.5.1.tbz
sha256=42397865f43779613b04bb2f3532b060c6dcca2d41aa1337b31124fca21629a4
sha512=52bf83c9e3a9e37764b514e34e1acbcdabef9ccac9cefa510e4683b693328ddde42ff59e8475e19c9f1a90caee8b790f2438f5808a11eca7700412b55f41a30e

doc/quickjs.c/Quickjs_c/Libregexp/index.html

Module Quickjs_c.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.

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.

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

Monotonic clock in milliseconds; basis for exec deadlines

Get number of capture groups (including group 0 for full match)