X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futf8.h;fp=src%2Fshared%2Futf8.h;h=dcf8588d32aaa7b8a68fab9694f9be2249ebb152;hb=e7eebcfc42f00aa481ef31abc8e7e243c16f5b2c;hp=59abee50ac08bc2ad26aed8fd90bea76869a606e;hpb=c532d8a00cacacc6775effb7aadca680b1d39ccd;p=elogind.git diff --git a/src/shared/utf8.h b/src/shared/utf8.h index 59abee50a..dcf8588d3 100644 --- a/src/shared/utf8.h +++ b/src/shared/utf8.h @@ -36,6 +36,7 @@ bool utf8_is_printable_newline(const char* str, size_t length, bool newline) _pu char *utf8_escape_invalid(const char *s); char *utf8_escape_non_printable(const char *str); +int utf8_encode_unichar(uint16_t c, char *p); char *utf16_to_utf8(const void *s, size_t length); int utf8_encoded_valid_unichar(const char *str);