diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-14 17:31:34 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-04-14 17:31:34 -0400 |
commit | 4b725bd2d38cbad1c490d22823f73c73ef3fc9df (patch) | |
tree | e9dbfa93b5ef064af87e03005a8f27ada56e23e9 /src/shared/utf8.h | |
parent | 119711f4e8f7dd47cb9abcdbde0023a4607e2dbf (diff) |
util: when unescaping C escape sequences support C++11 \u and
\U unicode literals
We simply recode them in utf8.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/utf8.h')
-rw-r--r-- | src/shared/utf8.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/utf8.h b/src/shared/utf8.h index 143b0ba08c..99a6304cf4 100644 --- a/src/shared/utf8.h +++ b/src/shared/utf8.h @@ -22,6 +22,8 @@ #include <stdbool.h> #include "macro.h" + +bool unichar_is_valid(uint32_t c); char *ascii_is_valid(const char *s) _pure_; |