int32_t hpl_cjk_decode_utf8(const uint8_t *src, uint32_t src_len, uint16_t *dst, uint32_t dst_cap, struct HplCjkDecodeResult *out)
Decodes UTF-8 into BMP-only UTF-16.
void LangAppendUtf8(const std::string &asText, size_t aStart, size_t aEnd, std::wstring &aOut)
Appends asText[aStart, aEnd) (non-ASCII bytes) decoded by hpl-cjk-text.