summaryrefslogtreecommitdiff
path: root/src/shared/utf8.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-10 11:27:47 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-10 11:28:34 +0200
commitf3ee629711783333005c41e21d66841268b80f70 (patch)
treeba8b7e109c433d85d4b3220be86309afbaa1caf6 /src/shared/utf8.h
parent96406c1a278bfd1c1b69a248cc6c223755077f02 (diff)
util: when unescaping C escape sequences support C++11 \u and \U unicode literals
We simply recode them in utf8.
Diffstat (limited to 'src/shared/utf8.h')
-rw-r--r--src/shared/utf8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/utf8.h b/src/shared/utf8.h
index 77f663438e..e745649f06 100644
--- a/src/shared/utf8.h
+++ b/src/shared/utf8.h
@@ -27,6 +27,8 @@
#define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
+bool unichar_is_valid(uint32_t c);
+
const char *utf8_is_valid(const char *s) _pure_;
char *ascii_is_valid(const char *s) _pure_;