diff options
| author | 2021-09-21 18:02:42 -0500 | |
|---|---|---|
| committer | 2021-09-21 18:02:42 -0500 | |
| commit | 9985f787ebb1a82e8c20991885539c491f8d2bd3 (patch) | |
| tree | 34ffe919564bb89386f8e36b969c92a5a1b3600e /src/include/janet.h | |
| parent | Remove accidental limit on max read size. (diff) | |
Add custom base option to number peg combinator.
Allows parsing custom bases without needed Janet specific prefixes.
Diffstat (limited to 'src/include/janet.h')
| -rw-r--r-- | src/include/janet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index 6d4c9a8b..b07197d6 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -1522,6 +1522,7 @@ JANET_API int janet_loop_fiber(JanetFiber *fiber); /* Number scanning */ JANET_API int janet_scan_number(const uint8_t *str, int32_t len, double *out); +JANET_API int janet_scan_number_base(const uint8_t *str, int32_t len, int32_t base, double *out); JANET_API int janet_scan_int64(const uint8_t *str, int32_t len, int64_t *out); JANET_API int janet_scan_uint64(const uint8_t *str, int32_t len, uint64_t *out); |
