Qore YAML Module  0.6
 All Namespaces Functions Variables Groups Pages
ql_yaml.dox.h
1 namespace Qore::YAML {
6 
8 
19 hash getYAMLInfo();
20 
22 
38 hash get_yaml_info();
39 
41 
57 string makeYAML(any data, int flags = Qore::YAML::None, softint width = -1, softint indent = 2);
58 
60 
83 string make_yaml(any data, int flags = Qore::YAML::None, softint width = -1, softint indent = 2);
84 
86 
99 any parseYAML(string yaml);
100 
102 
122 any parse_yaml(string yaml);
123 
125 };
127 namespace Qore::YAML {
131 
133  const BlockStyle = QYE_BLOCK_STYLE;
135  const Canonical = QYE_CANONICAL;
137  const EmitSqlNull = QYE_EMIT_SQLNULL;
139  const EscapeUnicode = QYE_ESCAPE_UNICODE;
141  const ExplicitEndDoc = QYE_EXPLICIT_END_DOC;
143  const ExplicitStartDoc = QYE_EXPLICIT_START_DOC;
145  const None = QYE_NONE;
147  const Yaml1_1 = QYE_VER_1_1;
149 };
const BlockStyle
emitter constant: emit seq and map with block style
Definition: ql_yaml.dox.h:133
any parse_yaml(string yaml)
Parses a YAML string and returns the corresponding Qore value or data structure.
const ExplicitEndDoc
emitter constant: emit an explicit document end sequence
Definition: ql_yaml.dox.h:141
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:145
hash get_yaml_info()
Returns version information about libyaml being used by the yaml module.
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:143
const EscapeUnicode
emitter constant: escape unicode characters
Definition: ql_yaml.dox.h:139
const Canonical
emitter constant: Emit canonical YAML
Definition: ql_yaml.dox.h:135
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:147
const EmitSqlNull
emitter constant: emit SQL null "!!sqlnull"
Definition: ql_yaml.dox.h:137
string make_yaml(any data, int flags=Qore::YAML::None, softint width=-1, softint indent=2)
Creates a YAML string from Qore data.