Qore YAML Module  0.4
 All Namespaces Functions Variables Groups
ql_yaml.dox.h
1 namespace Qore::YAML {
6 
8 
22 hash getYAMLInfo();
23 
25 
44 string makeYAML(any data, int flags = Qore::YAML::None, softint width = -1, softint indent = 2);
45 
47 
63 any parseYAML(string yaml);
64 
66 };
68 namespace Qore::YAML {
72 
74  const BlockStyle = QYE_BLOCK_STYLE;
76  const Canonical = QYE_CANONICAL;
78  const EscapeUnicode = QYE_ESCAPE_UNICODE;
80  const ExplicitEndDoc = QYE_EXPLICIT_END_DOC;
82  const ExplicitStartDoc = QYE_EXPLICIT_START_DOC;
84  const None = QYE_NONE;
86  const Yaml1_1 = QYE_VER_1_1;
88 };
const BlockStyle
emitter constant: emit seq and map with block style
Definition: ql_yaml.dox.h:74
const ExplicitEndDoc
emitter constant: emit an explicit document end sequence
Definition: ql_yaml.dox.h:80
hash getYAMLInfo()
Returns version information about libyaml being used by the yaml module.
const None
emitter constant: No option (= default output)
Definition: ql_yaml.dox.h:84
string makeYAML(any data, int flags=Qore::YAML::None, softint width=-1, softint indent=2)
Creates a YAML string from Qore data.
const ExplicitStartDoc
emitter constant: emit an explicit document start sequence
Definition: ql_yaml.dox.h:82
const EscapeUnicode
emitter constant: escape unicode characters
Definition: ql_yaml.dox.h:78
const Canonical
emitter constant: Emit canonical YAML
Definition: ql_yaml.dox.h:76
any parseYAML(string yaml)
Parses a YAML string and returns the corresponding Qore value or data structure.
const Yaml1_1
emitter constant: emit YAML 1.1 (not necessary to use as this is the default and currently the only Y...
Definition: ql_yaml.dox.h:86