couldnt make any sense out of tab2 at first, but
i think i got it now:

0xxxxxxx
110xxxxx 10mmmmmm
1110xxxx 10mmmmmm 10mmmmmm
11110xxx 10mmmmmm 10mmmmmm 10mmmmmm

m = tab2[i]
x = ~m

so i think tab2 should be:

Rune    tab2[] =
{
        0x003f,
        0x0fff,
        0x3ffff,
};

makes snese?

--
cinap

Reply via email to