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/src/quickjs.c/atod.ml.html

Source file atod.ml

1
2
3
4
5
6
7
8
9
(** 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]. *)

(** 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 *)
let parse str pnext radix flags tmp_mem =
  Bindings.C.Functions.js_atod str pnext radix flags tmp_mem