summaryrefslogtreecommitdiffstats
path: root/utf8.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2020-08-01 23:41:39 +0200
committerpgen <p.gen.progs@gmail.com>2020-08-01 23:55:21 +0200
commitc78abaf23302b7ed66665a9239f05c7df32295be (patch)
tree1d1a70be91f875a92f58b3e30099b0b559c39b0c /utf8.h
parent0a4bb0c1b71ad59d0685529e9df7ff26ea7b9662 (diff)
Allow to enter unicode UCS-4 codepoints using \U
\U must be followed by exactly 6 hexadecimal digits with leading zeros if necessary.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index 24ee656..a43d5af 100644
--- a/utf8.h
+++ b/utf8.h
@@ -6,6 +6,8 @@
#ifndef UTF8_H
#define UTF8_H
+#include <stdint.h>
+
typedef struct langinfo_s langinfo_t;
/* Locale informations */
@@ -35,6 +37,9 @@ void
utf8_sanitize(char * s, char sc);
int
+cptoutf8(char * utf8_str, uint32_t c);
+
+int
utf8_interpret(char * s, langinfo_t * langinfo, char sc);
int