foldXraySchemaField function
Go's struct-field matching against ASCII Xray schema names. Dictionary keys are caller data and must never be normalized using this helper.
Implementation
String foldXraySchemaField(String key) => String.fromCharCodes(key.runes.map(
(rune) => switch (rune) {
>= 0x41 && <= 0x5a => rune + 0x20,
0x017f => 0x73,
0x212a => 0x6b,
_ => rune,
},
));