added hcl_json_feeduchars() and hcl_json_feedbchars()

This commit is contained in:
2025-06-09 08:07:03 +09:00
parent 87fd48b713
commit 02748cd24d
2 changed files with 83 additions and 10 deletions

View File

@ -122,13 +122,28 @@ HCL_EXPORT void hcl_json_reset (
hcl_json_t* json
);
HCL_EXPORT int hcl_json_feed (
hcl_json_t* json,
const void* ptr,
hcl_oow_t len,
hcl_oow_t* xlen
HCL_EXPORT int hcl_json_feedbchars (
hcl_json_t* json,
const hcl_bch_t* ptr,
hcl_oow_t len,
hcl_oow_t* xlen
);
HCL_EXPORT int hcl_json_feeduchars (
hcl_json_t* json,
const hcl_uch_t* ptr,
hcl_oow_t len,
hcl_oow_t* xlen
);
#if defined(HCL_OOCH_IS_UCH)
# define hcl_json_feed hcl_json_feeduchars
#else
# define hcl_json_feed hcl_json_feedbchars
#endif
HCL_EXPORT hcl_json_state_t hcl_json_getstate (
hcl_json_t* json
);