summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/utf8.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2012-12-12 11:25:58 +0000
committerkr.angelov <kr.angelov@gmail.com>2012-12-12 11:25:58 +0000
commitaa13090b66d7ee1ffc68ad242c6419a83cf364d9 (patch)
treed36bacbc5f4e0990aae925da31ddeaf2a465a003 /src/runtime/c/gu/utf8.h
parent5e091d2e3dc428daa1d4b0d8df6e7b613adc22a9 (diff)
started an official API to the C runtime
Diffstat (limited to 'src/runtime/c/gu/utf8.h')
-rw-r--r--src/runtime/c/gu/utf8.h28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/runtime/c/gu/utf8.h b/src/runtime/c/gu/utf8.h
index c4112b5a5..410010c3f 100644
--- a/src/runtime/c/gu/utf8.h
+++ b/src/runtime/c/gu/utf8.h
@@ -18,19 +18,8 @@ gu_in_utf8(GuIn* in, GuExn* err)
}
-inline char
-gu_in_utf8_char(GuIn* in, GuExn* err)
-{
-#ifdef CHAR_ASCII
- int i = gu_in_peek_u8(in);
- if (i >= 0 && i < 0x80) {
- gu_in_consume(in, 1);
- return (char) i;
- }
-#endif
- extern char gu_in_utf8_char_(GuIn* in, GuExn* err);
- return gu_in_utf8_char_(in, err);
-}
+char
+gu_in_utf8_char(GuIn* in, GuExn* err);
void
gu_out_utf8_long_(GuUCS ucs, GuOut* out, GuExn* err);
@@ -52,16 +41,7 @@ gu_utf32_out_utf8(const GuUCS* src, size_t len, GuOut* out, GuExn* err);
GuUCS
gu_utf8_decode(const uint8_t** utf8);
-inline void
-gu_str_out_utf8(const char* str, GuOut* out, GuExn* err)
-{
-#ifdef CHAR_ASCII
- gu_out_bytes(out, (const uint8_t*) str, strlen(str), err);
-#else
- extern void
- gu_str_out_utf8_(const char* str, GuOut* out, GuExn* err);
- gu_str_out_utf8_(str, out, err);
-#endif
-}
+void
+gu_str_out_utf8(const char* str, GuOut* out, GuExn* err);
#endif // GU_UTF8_H_