[clang] [llvm] [llvm-strings] Add --encoding={s, S, utf8} option (PR #221794)

James Henderson via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 5 01:22:11 PST 2026


================
@@ -252,15 +250,41 @@ struct CharSet {
       if (Cur == End)
         return false;
 
+      static const UTF32(&LookupTable)[0x100] = [&]() -> const UTF32(&)[0x100] {
+        static UTF32 LookupTable[0x100];
+
+        for (int I = 0; I < 0x100; ++I) {
+          const unsigned char Ch = I;
----------------
jh7370 wrote:

Excuse me while I go and hide in a corner and pretend this conversation didn't exist :)

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


More information about the cfe-commits mailing list