src/cx/json.h

changeset 1667
608cc0b25352
parent 1607
0ecb13118cac
equal deleted inserted replaced
1665:b79405fbf91d 1667:608cc0b25352
287 * The input buffer. 287 * The input buffer.
288 */ 288 */
289 CxBuffer buffer; 289 CxBuffer buffer;
290 290
291 /** 291 /**
292 * Used internally.
293 *
294 * Remembers the prefix of the last uncompleted token.
295 */
296 CxJsonToken uncompleted;
297
298 /**
299 * A pointer to an intermediate state of the currently parsed value. 292 * A pointer to an intermediate state of the currently parsed value.
300 * 293 *
301 * Never access this value manually. 294 * Never access this value manually.
302 */ 295 */
303 CxJsonValue *parsed; 296 CxJsonValue *parsed;
306 * The name of a not yet completely parsed object member. 299 * The name of a not yet completely parsed object member.
307 * 300 *
308 * Never access this value manually. 301 * Never access this value manually.
309 */ 302 */
310 cxmutstr uncompleted_member_name; 303 cxmutstr uncompleted_member_name;
304
305 /**
306 * Internal buffer for uncompleted tokens.
307 */
308 cxmutstr uncompleted_content;
309
310 /**
311 * The expected type of the currently parsed, uncompleted token.
312 */
313 CxJsonTokenType uncompleted_tokentype;
311 314
312 /** 315 /**
313 * State stack. 316 * State stack.
314 */ 317 */
315 CX_ARRAY(int, states); 318 CX_ARRAY(int, states);

mercurial