From c469ae9091fb830f0aae1b9abf8ee174a0ac0012 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 13 Sep 2013 07:44:45 +0000 Subject: clean up the UTF8 API in libgu --- src/runtime/c/gu/utf8.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/runtime/c/gu/utf8.h') diff --git a/src/runtime/c/gu/utf8.h b/src/runtime/c/gu/utf8.h index 410010c3f..7cf42d56a 100644 --- a/src/runtime/c/gu/utf8.h +++ b/src/runtime/c/gu/utf8.h @@ -17,13 +17,6 @@ gu_in_utf8(GuIn* in, GuExn* err) return gu_in_utf8_(in, err); } - -char -gu_in_utf8_char(GuIn* in, GuExn* err); - -void -gu_out_utf8_long_(GuUCS ucs, GuOut* out, GuExn* err); - inline void gu_out_utf8(GuUCS ucs, GuOut* out, GuExn* err) { @@ -31,17 +24,12 @@ gu_out_utf8(GuUCS ucs, GuOut* out, GuExn* err) if (GU_LIKELY(ucs < 0x80)) { gu_out_u8(out, ucs, err); } else { - gu_out_utf8_long_(ucs, out, err); + extern void gu_out_utf8_(GuUCS ucs, GuOut* out, GuExn* err); + gu_out_utf8_(ucs, out, err); } } -size_t -gu_utf32_out_utf8(const GuUCS* src, size_t len, GuOut* out, GuExn* err); - GuUCS gu_utf8_decode(const uint8_t** utf8); -void -gu_str_out_utf8(const char* str, GuOut* out, GuExn* err); - #endif // GU_UTF8_H_ -- cgit v1.2.3