Functionsยง
- byte_
array_ from_ utf8_ char_ array - Encode an array of Unicode codepoints (as u32) into UTF-8 bytes. (byteArrayFromUtf8CharArray in original.)
- first_
utf8_ codepoint - Helper: decode first UTF-8 codepoint (or raw byte) returning (codepoint,
byte_len). - last_
utf8_ codepoint - Helper: decode last UTF-8 codepoint (or raw byte) returning (codepoint,
byte_len). - unicode_
scalar_ from_ utf8 - utf8_
char_ array_ from_ byte_ array - Convert a UTF-8 byte slice into a vector of Unicode scalar codepoints (as i32), analogous to utf8CharArrayFromByteArray in the original code.