summaryrefslogtreecommitdiffstats
path: root/utf8.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2020-07-12 00:11:00 +0200
committerpgen <p.gen.progs@gmail.com>2020-07-18 18:31:03 +0200
commitecb544da53f6c7cba0191f4d7c5764dcd6b864a2 (patch)
tree1479a4ba9bc5df3bd0c56b23ae696804aad0e07e /utf8.h
parent01f9896fb17ea1cb7228dcd13b655f3812a72919 (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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/utf8.h b/utf8.h
index 3bde4f0..24ee656 100644
--- a/utf8.h
+++ b/utf8.h
@@ -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);