[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 11:04:54 PDT 2025


================
@@ -53,7 +54,8 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
   // the number of bits per utf-8 byte that actually encode character
   // information not metadata (# of bits excluding the byte headers)
   const int ENCODED_BITS_PER_BYTE = 6;
-  const int MASK_LOWER_SIX = 0x3f;
+  const int MASK_LOWER_SIX =
----------------
michaelrj-google wrote:

nit:
```suggestion
  const int MASK_ENCODED_BITS =
```

https://github.com/llvm/llvm-project/pull/143971


More information about the libc-commits mailing list