24 str[b] = 0x80 | (codepoint & 0x3f);
29 case 1: str[0] = (codepoint & 0x7f);
break;
30 case 2: str[0] = 0xc0 | (codepoint & 0x1f);
break;
31 case 3: str[0] = 0xe0 | (codepoint & 0x0f);
break;
32 case 4: str[0] = 0xf0 | (codepoint & 0x07);
break;
33 case 5: str[0] = 0xf8 | (codepoint & 0x03);
break;
34 case 6: str[0] = 0xfc | (codepoint & 0x01);
break;