![]() |
Qore yaml Module
0.7.0
|
Modules | |
| YAML Emitter Option Constants | |
Functions | |
| hash | Qore::YAML::getYAMLInfo () |
| Returns version information about libyaml being used by the yaml module. More... | |
| hash | Qore::YAML::get_yaml_info () |
| Returns version information about libyaml being used by the yaml module. More... | |
| string | Qore::YAML::makeYAML (auto data, int flags=Qore::YAML::None, softint width=-1, softint indent=2) |
| Creates a YAML string from Qore data. More... | |
| string | Qore::YAML::make_yaml (auto data, int flags=Qore::YAML::None, softint width=-1, softint indent=2) |
| Creates a YAML string from Qore data. More... | |
| auto | Qore::YAML::parseYAML (string yaml) |
| Parses a YAML string and returns the corresponding Qore value or data structure. More... | |
| auto | Qore::YAML::parse_yaml (string yaml) |
| Parses a YAML string and returns the corresponding Qore value or data structure. More... | |
| hash Qore::YAML::get_yaml_info | ( | ) |
Returns version information about libyaml being used by the yaml module.
version: the version string for the library, ex: "0.1.3" major: the integer major version for the library, ex: 0 minor: the integer minor version for the library, ex: 1 patch: the integer patch version for the library, ex: 3 | hash Qore::YAML::getYAMLInfo | ( | ) |
Returns version information about libyaml being used by the yaml module.
version: the version string for the library, ex: "0.1.3" major: the integer major version for the library, ex: 0 minor: the integer minor version for the library, ex: 1 patch: the integer patch version for the library, ex: 3 | string Qore::YAML::make_yaml | ( | auto | data, |
| int | flags = Qore::YAML::None, |
||
| softint | width = -1, |
||
| softint | indent = 2 |
||
| ) |
Creates a YAML string from Qore data.
For information on Qore to YAML serialization, see Qore to YAML Type Mappings
| data | Qore data to convert; cannot contain any objects or a YAML-EMITTER-ERROR exception will be raised |
| flags | binary OR'ed YAML Emitter Option Constants |
| width | default line width for output, -1 = no line length limit |
| indent | the number of spaces to use for indentation when outputting block format or multiple lines; note that libyaml seems to be ignoring this parameter for now, so it may not have any effect |
| YAML-EMITTER-ERROR | object found; YAML library error |
| string Qore::YAML::makeYAML | ( | auto | data, |
| int | flags = Qore::YAML::None, |
||
| softint | width = -1, |
||
| softint | indent = 2 |
||
| ) |
Creates a YAML string from Qore data.
For information on Qore to YAML serialization, see Qore to YAML Type Mappings
| data | Qore data to convert; cannot contain any objects or a YAML-EMITTER-ERROR exception will be raised |
| flags | binary OR'ed YAML Emitter Option Constants |
| width | default line width for output, -1 = no line length limit |
| indent | the number of spaces to use for indentation when outputting block format or multiple lines; note that libyaml seems to be ignoring this parameter for now, so it may not have any effect |
| YAML-EMITTER-ERROR | object found; YAML library error |
| auto Qore::YAML::parse_yaml | ( | string | yaml | ) |
Parses a YAML string and returns the corresponding Qore value or data structure.
For information on YAML to Qore deserialization, see Qore to YAML Type Mappings
| yaml | The YAML string to deserialize |
| YAML-PARSER-ERROR | error parsing YAML string |
| auto Qore::YAML::parseYAML | ( | string | yaml | ) |
Parses a YAML string and returns the corresponding Qore value or data structure.
For information on YAML to Qore deserialization, see Qore to YAML Type Mappings
| yaml | The YAML string to deserialize |
| YAML-PARSER-ERROR | error parsing YAML string |