refactor: bring char8_t to this library.

- add yycc_char8_t and yycc_u8string in code to indicate explicit utf8 char type and string. it also has a polyfill if compiler and library do not support utf8 char type.
- refactor the whole encoding helper. allow converting string with embedded NUL. but not tested.
This commit is contained in:
2024-06-26 21:04:56 +08:00
parent bb17bb6a1f
commit c15b57d055
4 changed files with 286 additions and 117 deletions