UTF-8 encode and decode: Difference between revisions
Content added Content deleted
Line 165: | Line 165: | ||
typedef struct { |
typedef struct { |
||
char mask; /* the char data is in these bits */ |
char mask; /* the char data is in these bits */ |
||
char lead; /* the start bytes of a utf-8 encoded char */ |
char lead; /* the start bytes of a utf-8 encoded char */ |
||
uint32_t beg; /* beginning of codepoint range */ |
uint32_t beg; /* beginning of codepoint range */ |
||
uint32_t end; /* end of codepoint range */ |
uint32_t end; /* end of codepoint range */ |