diff options
author | pgen <p.gen.progs@gmail.com> | 2020-07-12 00:11:00 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2020-07-18 18:31:03 +0200 |
commit | ecb544da53f6c7cba0191f4d7c5764dcd6b864a2 (patch) | |
tree | 1479a4ba9bc5df3bd0c56b23ae696804aad0e07e /utf8.h | |
parent | 01f9896fb17ea1cb7228dcd13b655f3812a72919 (diff) |
Allow to change the substitution character
A pointer to the misc structure has to be passed to a certain number of
functions for that, but this prepares the ground for future developments
of this type.
The code to interpret \u (UTF-8) sequences has also been made more robust
for better manage incorrect entries.
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,10 +32,10 @@ wchar_t * utf8_strtowcs(char * s); void -utf8_sanitize(char * s); +utf8_sanitize(char * s, char sc); -void -utf8_interpret(char * s, langinfo_t * langinfo); +int +utf8_interpret(char * s, langinfo_t * langinfo, char sc); int utf8_validate(const char * str, size_t length); |