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.4.0.tbz
sha256=09f64b910cfd60c078cccaed2eb6775ada64a45644f83219134b3bb2e2fb4c74
sha512=35c8d98f93d4304a2ed4be32017c43d67edb92849b04efa11310b33a02c850ba47496d875aae37f716b31e57b2168c65ae416887c679ebcab0ab21fc90be955e

doc/quickjs.c/Libunicode/index.html

Module LibunicodeSource

Low-level bindings to QuickJS's libunicode - Unicode Character Utilities

Unicode character classification and case conversion. These are raw C bindings; for a higher-level API, use Quickjs.Unicode.

Character Classification

Check if character has uppercase/lowercase variants (Cased property)

Check if character is ignored during case mapping (Case_Ignorable)

Check if character can start an identifier (ID_Start)

Check if character can continue an identifier (ID_Continue)

Check if character is whitespace (works for all codepoints)

Case Conversion

Sourceval case_conv : Unsigned.uint32 Ctypes_static.ptr -> Unsigned.uint32 -> int -> int Bindings.Libregexp__c_generated_functions__Function_description__Functions.return

Convert character case. conv_type: 0 = uppercase, 1 = lowercase, 2 = case folding Returns number of output codepoints (1-3)

Canonicalize character for case-insensitive regex matching. is_unicode: 1 = full Unicode folding, 0 = ASCII only

Normalization

Sourceval normalize : Unsigned.uint32 Ctypes_static.ptr -> int -> int -> Unsigned.uint32 Ctypes_static.ptr Ctypes_static.ptr -> int Bindings.Libregexp__c_generated_functions__Function_description__Functions.return

Normalize Unicode string. n_type: 0 = NFC, 1 = NFD, 2 = NFKC, 3 = NFKD Returns length of output, or -1 on error

Sourceval normalize_free : Unsigned.uint32 Ctypes_static.ptr -> unit Bindings.Libregexp__c_generated_functions__Function_description__Functions.return

Free buffer allocated by normalize