diff options
author | pgen <p.gen.progs@gmail.com> | 2020-08-01 23:41:39 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2020-08-01 23:55:21 +0200 |
commit | c78abaf23302b7ed66665a9239f05c7df32295be (patch) | |
tree | 1d1a70be91f875a92f58b3e30099b0b559c39b0c /utf8.h | |
parent | 0a4bb0c1b71ad59d0685529e9df7ff26ea7b9662 (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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |