w3m

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

utf8.h (644B)


      1 
      2 #ifndef _WC_UTF8_H
      3 #define _WC_UTF8_H
      4 
      5 #define WC_C_UTF8_L2	0x80
      6 #define WC_C_UTF8_L3	0x800
      7 #define WC_C_UTF8_L4	0x10000
      8 #define WC_C_UTF8_L5	0x200000
      9 #define WC_C_UTF8_L6	0x4000000
     10 
     11 #define WC_UTF8_NOSTATE	0
     12 #define WC_UTF8_NEXT	1
     13 
     14 extern wc_uint8 WC_UTF8_MAP[];
     15 
     16 extern size_t    wc_ucs_to_utf8(wc_uint32 ucs, wc_uchar *utf8);
     17 extern wc_uint32 wc_utf8_to_ucs(wc_uchar *utf8);
     18 extern Str       wc_conv_from_utf8(Str is, wc_ces ces);
     19 extern void      wc_push_to_utf8(Str os, wc_wchar_t cc, wc_status *st);
     20 extern void      wc_push_to_utf8_end(Str os, wc_status *st);
     21 extern Str       wc_char_conv_from_utf8(wc_uchar c, wc_status *st);
     22 
     23 #endif