|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Data Structures | |
| class | LineWriter |
| Checked 64 KiB buffered path/borrowed-fd writer, with opaque state. More... | |
| struct | RecordSet |
| Run properties selecting the fixed version-1 descriptors (3.7:795-809, 823-831; 6:1310-1311). More... | |
| struct | Trailer |
| Trailer values for mapping to the C receipt (3.7:833-837; 6:1291-1298). More... | |
Functions | |
| std::string | f64 (double value) |
| One complete JSON f64 token, exactly Python 3 repr(double), or "null" for non-finite values (3.7:850-853, 858-875). | |
| std::string | escaped_string (std::string_view utf8) |
| One complete quoted JSON string (3.7:878-879). | |
| std::string pineforge::report_sink::f64 | ( | double | value | ) |
One complete JSON f64 token, exactly Python 3 repr(double), or "null" for non-finite values (3.7:850-853, 858-875).
Preserve -0.0 and shortest round-trip digits. First-digit decimal exponent -4 <= X < 16 uses fixed notation with a digit after the point; otherwise use scientific notation with an exponent sign and at least two digits. No locale-dependent text. DESIGN prescribes shortest scientific to_chars followed by re-layout; this declaration supplies no formatter implementation.
| std::string pineforge::report_sink::escaped_string | ( | std::string_view | utf8 | ) |
One complete quoted JSON string (3.7:878-879).
Escape double quote and backslash; encode U+0000..U+001F as lowercase \u00xx. Other bytes remain raw UTF-8; a byte not starting a valid UTF-8 sequence becomes U+FFFD.