We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e576531 commit 6afa771Copy full SHA for 6afa771
libc/src/__support/wchar/character_converter.cpp
@@ -19,9 +19,10 @@
19
namespace LIBC_NAMESPACE_DECL {
20
namespace internal {
21
22
+// This is for utf-8 bytes other than the first byte
23
constexpr size_t ENCODED_BITS_PER_UTF8 = 6;
-// the number of bits per utf-8 byte that actually encode character
24
-// information not metadata (# of bits excluding the byte headers)
+// The number of bits per utf-8 byte that actually encode character
25
+// Information not metadata (# of bits excluding the byte headers)
26
constexpr uint32_t MASK_ENCODED_BITS =
27
mask_trailing_ones<uint32_t, ENCODED_BITS_PER_UTF8>();
28
0 commit comments