utf8_to_ucs4
code = utf8_to_ucs4(p, &inlen, ir);
static uint32_t utf8_to_ucs4(const char *src, size_t *utf8width, size_t srclen);