[libc-commits] [libc] [libc] Implemented CharacterConverter push/pop for utf32->utf8 conversions (PR #143971)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Jun 13 09:56:39 PDT 2025
================
@@ -22,13 +23,134 @@ bool CharacterConverter::isComplete() {
return state->bytes_processed == state->total_bytes;
}
-int CharacterConverter::push(char8_t utf8_byte) {}
+int CharacterConverter::push(char32_t utf32) {
+ state->partial = utf32;
+ state->bytes_processed = 0;
----------------
michaelrj-google wrote:
ah, that makes sense. You should add a comment to the `mbstate` class explaining that
https://github.com/llvm/llvm-project/pull/143971
More information about the libc-commits
mailing list