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.6.0.tbz
sha256=24e60ef65737c2b8e762b98fbdbc836380425c35c5b3ffae657a14671e51d959
sha512=3868ca89255ebc03ea8a9ba6fe1604c8c5aad5060274d518be99a3300883ebeae864b8b68bf3782875c527a41828f40b3cb75d50179d6802ec0eafd59591af4f

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

Module Quickjs_c.LibregexpSource

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.

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

Monotonic clock in milliseconds; basis for exec deadlines

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