Lines Matching +full:use +full:- +full:case
10 * See the COPYING.LIB file in the top-level directory.
16 #include "qobject/json-parser.h"
17 #include "qobject/json-writer.h"
36 assert(!s->result || !s->err); in consume_json()
38 if (s->result) { in consume_json()
39 qobject_unref(s->result); in consume_json()
40 s->result = NULL; in consume_json()
41 error_setg(&s->err, "Expecting at most one JSON value"); in consume_json()
43 if (s->err) { in consume_json()
48 s->result = json; in consume_json()
49 s->err = err; in consume_json()
54 * If @ap is non-null, interpolate %-escapes.
86 * Parse @string as JSON value with %-escapes interpolated.
87 * Abort on error. Do not use with untrusted @string.
105 * Parse @string as JSON value with %-escapes interpolated.
106 * Abort on error. Do not use with untrusted @string.
122 * Parse @string as JSON object with %-escapes interpolated.
123 * Abort on error. Do not use with untrusted @string.
136 * Parse @string as JSON object with %-escapes interpolated.
137 * Abort on error. Do not use with untrusted @string.
155 case QTYPE_QNULL: in to_json()
158 case QTYPE_QNUM: { in to_json()
161 switch (val->kind) { in to_json()
162 case QNUM_I64: in to_json()
163 json_writer_int64(writer, name, val->u.i64); in to_json()
165 case QNUM_U64: in to_json()
166 json_writer_uint64(writer, name, val->u.u64); in to_json()
168 case QNUM_DOUBLE: in to_json()
169 json_writer_double(writer, name, val->u.dbl); in to_json()
176 case QTYPE_QSTRING: { in to_json()
182 case QTYPE_QDICT: { in to_json()
197 case QTYPE_QLIST: { in to_json()
210 case QTYPE_QBOOL: { in to_json()