From 4b725bd2d38cbad1c490d22823f73c73ef3fc9df Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Apr 2015 17:31:34 -0400 Subject: 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 --- src/shared/utf8.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/utf8.h') 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 #include "macro.h" + +bool unichar_is_valid(uint32_t c); char *ascii_is_valid(const char *s) _pure_; -- cgit v1.2.3-54-g00ecf