summaryrefslogtreecommitdiff
path: root/src/shared/utf8.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-29 12:02:20 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-12-29 12:02:20 -0500
commit7695053973dda61491c2f4bdb64b103731eeae59 (patch)
treecab34071f0aabc5bea746ac48bada2250aff1721 /src/shared/utf8.h
parentf39a29beda2c065aaeedaa3b6238a69cdcf384fb (diff)
shared: utf8 - support ucs4 -> utf8
Originally we only supported ucs2, so move the ucs4 version from libsystemd-terminal to shared and use that everywhere. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/utf8.h')
-rw-r--r--src/shared/utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/utf8.h b/src/shared/utf8.h
index 6112332a4e..2d9b5f7011 100644
--- a/src/shared/utf8.h
+++ b/src/shared/utf8.h
@@ -30,7 +30,7 @@ _pure_ static inline bool utf8_is_printable(const char* str, size_t length) {
return utf8_is_printable_newline(str, length, true);
}
-int utf8_encode_unichar(uint16_t c, char *p);
+size_t utf8_encode_unichar(char *out_utf8, uint32_t g);
char *utf16_to_utf8(const void *s, size_t length);
int utf8_encoded_valid_unichar(const char *str);