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.1.tbz
sha256=146725bf2d0ef5ef95d7cf72a524c6f72697c7c619627be5fb2451f9daf6d28e
sha512=190962b9044f7b044bb36d8c8eb42223fbc7a31160429917725cf931e2c608c5ee0f669bcbca1a9fe731c62759c427c6e832fccad3f35a282ca517ad75631d25

doc/quickjs.c/Atod/index.html

Module AtodSource

Low-level bindings to QuickJS's atod - ASCII to Double conversion

JavaScript-compatible floating point parsing (atod = Ascii TO Double). These are raw C bindings; for a higher-level API, use Quickjs.Global.

Sourceval parse : string -> char Ctypes_static.ptr Ctypes_static.ptr -> int -> int -> unit Ctypes_static.ptr -> float Bindings.Libregexp__c_generated_functions__Function_description__Functions.return

Parse string to double with JS semantics. Flags: JS_ATOD_INT_ONLY | JS_ATOD_ACCEPT_BIN_OCT | etc. Sets *pnext to position after parsed number