Esc

toml_set_text

procedureextensionsince 0.36.1Source
  • macOS: toml_set_text works on macOS
  • Linux: toml_set_text works on Linux
  • Windows: toml_set_text works on Windows
  • Wasm: toml_set_text works on Wasm

Copies a string with the document's allocator. Failure preserves both value and budget. max_string_bytes limits one decoded string/key/fraction; retained bytes bound their total. Example: error = toml_set_text(*doc, value, "tool");

Signature

toml_set_text :: (
    doc: *Toml_Document,
    value: *Toml_Value,
    text: string
) -> Toml_Error

See also