converter 5030 ext/nkf/nkf-utf8/nkf.c converter->input_buffer_size = IOBUF_SIZE; converter 5031 ext/nkf/nkf-utf8/nkf.c converter->input_buffer = nkf_xmalloc(converter->input_buffer_size); converter 5032 ext/nkf/nkf-utf8/nkf.c converter->output_buffer_size = IOBUF_SIZE * 2; converter 5033 ext/nkf/nkf-utf8/nkf.c converter->output_buffer = nkf_xmalloc(converter->output_buffer_size); converter 5034 ext/nkf/nkf-utf8/nkf.c converter->cd = iconv_open(tocode, fromcode); converter 5035 ext/nkf/nkf-utf8/nkf.c if (converter->cd == (iconv_t)-1) converter 5051 ext/nkf/nkf-utf8/nkf.c char *input_buffer = converter->input_buffer; converter 5053 ext/nkf/nkf-utf8/nkf.c char *output_buffer = converter->output_buffer; converter 5054 ext/nkf/nkf-utf8/nkf.c size_t output_length = converter->output_buffer_size; converter 5061 ext/nkf/nkf-utf8/nkf.c if (input_length < converter->input_buffer_size) break; converter 5065 ext/nkf/nkf-utf8/nkf.c size_t ret = iconv(converter->cd, &input_buffer, &input_length, &output_buffer, &output_length); converter 5067 ext/nkf/nkf-utf8/nkf.c (*o_putc)(output_buffer[converter->output_buffer_size-output_length]); converter 5072 ext/nkf/nkf-utf8/nkf.c if (input_buffer != converter->input_buffer) converter 5073 ext/nkf/nkf-utf8/nkf.c memmove(converter->input_buffer, input_buffer, input_length); converter 5076 ext/nkf/nkf-utf8/nkf.c converter->output_buffer_size *= 2; converter 5077 ext/nkf/nkf-utf8/nkf.c output_buffer = realloc(converter->outbuf, converter->output_buffer_size); converter 5082 ext/nkf/nkf-utf8/nkf.c converter->output_buffer = output_buffer; converter 5100 ext/nkf/nkf-utf8/nkf.c nkf_xfree(converter->inbuf); converter 5101 ext/nkf/nkf-utf8/nkf.c nkf_xfree(converter->outbuf); converter 5102 ext/nkf/nkf-utf8/nkf.c iconv_close(converter->cd);