yamlDecode()
Decodes a string.
Synopsis
anytype yamlDecode(string yaml, bool resolveAliasAnchor = true);
Parameters
Parameter | Description |
---|---|
yaml | The string to be decoded. |
resolveAliasAnchor | Defines if the references in the file will be resolved. |
Description
The given string is read by the rapidyaml and is converted into a tree or node-structure. For this, differentiates between:
- map (Mapping)
- seq (DynVar)
- scalar (un/signed LongVar, FloatVar, TextVar).
If a string with multiple docs is given the return will be a dyn_mapping. For a string with only one doc (or without doc separation) a mapping will be returned.
Assignment
functions
Availability
CTRL