X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fshared%2Futf8.h;h=dcf8588d32aaa7b8a68fab9694f9be2249ebb152;hb=43343ee7c298dad8db0698b4c181a42ecb7bb216;hp=59abee50ac08bc2ad26aed8fd90bea76869a606e;hpb=6ed62be0b15ac92d9687cff93c63d7b06d11b9f0;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);