Tools for the unicode Linter #
The actual linter is defined in TextBased.lean.
This file defines the blocklist and other tools used by the linter.
Prints a unicode character's codepoint in hexadecimal with prefix 'U+'. E.g., 'a' is "U+0061".
Equations
- Mathlib.Linter.TextBased.UnicodeLinter.printCodepointHex c = ("U+".append ("0000".drop (Nat.toDigits 16 c.val.toNat).length).toString).append (String.ofList (Nat.toDigits 16 c.val.toNat))
Instances For
Blocklist: If false, the character is not allowed in Mathlib.
Instances For
Provide default replacement (String) for a blocklisted character, or none if none defined