json-lexer.c (de930f45cb56ccf7535cbacee3f3686d416f5283) | json-lexer.c (4b1c0cd7c7f9f9cf2e46c0a9c9cd88b2cba3decd) |
---|---|
1/* 2 * JSON lexer 3 * 4 * Copyright IBM, Corp. 2009 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 79 unchanged lines hidden (view full) --- 88 * - Single-quoted strings: 89 * Like double-quoted strings, except they're delimited by %x27 90 * (apostrophe) instead of %x22 (quotation mark), and can't contain 91 * unescaped apostrophe, but can contain unescaped quotation mark. 92 * - Interpolation: 93 * interpolation = %((l|ll|I64)[du]|[ipsf]) 94 * 95 * Note: | 1/* 2 * JSON lexer 3 * 4 * Copyright IBM, Corp. 2009 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 79 unchanged lines hidden (view full) --- 88 * - Single-quoted strings: 89 * Like double-quoted strings, except they're delimited by %x27 90 * (apostrophe) instead of %x22 (quotation mark), and can't contain 91 * unescaped apostrophe, but can contain unescaped quotation mark. 92 * - Interpolation: 93 * interpolation = %((l|ll|I64)[du]|[ipsf]) 94 * 95 * Note: |
96 * - Input must be encoded in UTF-8. | 96 * - Input must be encoded in modified UTF-8. |
97 * - Decoding and validating is left to the parser. 98 */ 99 100enum json_lexer_state { 101 IN_ERROR = 0, /* must really be 0, see json_lexer[] */ 102 IN_DQ_UCODE3, 103 IN_DQ_UCODE2, 104 IN_DQ_UCODE1, --- 346 unchanged lines hidden --- | 97 * - Decoding and validating is left to the parser. 98 */ 99 100enum json_lexer_state { 101 IN_ERROR = 0, /* must really be 0, see json_lexer[] */ 102 IN_DQ_UCODE3, 103 IN_DQ_UCODE2, 104 IN_DQ_UCODE1, --- 346 unchanged lines hidden --- |