added hawk_json_feeduchars()

This commit is contained in:
2025-06-08 21:51:11 +09:00
parent 7f9ac2047f
commit 63eb61c5c0
17 changed files with 710 additions and 577 deletions

View File

@ -40,15 +40,15 @@ struct hawk_json_state_node_t
struct
{
/* 0: ready to get key (at the beginning or got comma),
/* 0: ready to get key (at the beginning or got comma),
* 1: got key, 2: got colon, 3: got value */
int state;
int state;
} id; /* in dictionary */
struct
{
int escaped;
int digit_count;
/* acc is always of unicode type to handle \u and \U.
/* acc is always of unicode type to handle \u and \U.
* in the bch mode, it will get converted to a utf8 stream. */
hawk_uch_t acc;
} sv;
@ -58,7 +58,7 @@ struct hawk_json_state_node_t
int digit_count;
/* for a character, no way to support the unicode character
* in the bch mode */
hawk_ooch_t acc;
hawk_ooch_t acc;
} cv;
struct
{