long int sbcs_to_unicode(const struct sbcs_data *sd, long int input_chr);
long int sbcs_from_unicode(const struct sbcs_data *sd, long int input_chr);
+void read_utf8(charset_spec const *charset, long int input_chr,
+ charset_state *state,
+ void (*emit)(void *ctx, long int output), void *emitctx);
+
long int big5_to_unicode(int r, int c);
int unicode_to_big5(long int unicode, int *r, int *c);
long int cp949_to_unicode(int r, int c);
ustate.s1 = 0;
ustate.s0 = state->s0 & 0x03ffffffL;
- utf8 = charset_find_spec(CS_UTF8);
- utf8->read(utf8, input_chr, &ustate, emit, emitctx);
+ read_utf8(NULL, input_chr, &ustate, emit, emitctx);
state->s0 = (state->s0 & ~0x03ffffffL) | (ustate.s0 & 0x03ffffffL);
}
* UTF-8 has no associated data, so `charset' may be ignored.
*/
-static void read_utf8(charset_spec const *charset, long int input_chr,
- charset_state *state,
- void (*emit)(void *ctx, long int output), void *emitctx)
+void read_utf8(charset_spec const *charset, long int input_chr,
+ charset_state *state,
+ void (*emit)(void *ctx, long int output), void *emitctx)
{
UNUSEDARG(charset);