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.2.tbz
sha256=594fac60b9273af7e1903f0689efa353121309d8de911376f91966c32cd3ab7f
sha512=68beb126919a214fa9e46d84566c97e6ff3667c6c4478f352f1145e5bf1888b2a5eaca9855f39d734b2e9dc5bc0c7650f45679d177d546a2b0ba53dced5f2d1f

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