forked from GitHub/gf-core
clean up the UTF8 API in libgu
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user