w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

char_conv.c (447B)


      1 
      2 #include "wc.h"
      3 
      4 static wc_ces char_conv_f_ces = 0, char_conv_t_ces = WC_CES_WTF;
      5 static wc_status char_conv_st;
      6 
      7 void
      8 wc_char_conv_init(wc_ces f_ces, wc_ces t_ces)
      9 {
     10     wc_input_init(f_ces, &char_conv_st);
     11     char_conv_st.state = -1;
     12     char_conv_f_ces = f_ces;
     13     char_conv_t_ces = t_ces;
     14 }
     15 
     16 Str
     17 wc_char_conv(char c)
     18 {
     19     return wc_Str_conv((*char_conv_st.ces_info->char_conv)((wc_uchar)c, &char_conv_st),
     20 	WC_CES_WTF, char_conv_t_ces);
     21 }