https://github.com/JuliaLang/julia
Raw File
Tip revision: f75659644e83b4e9a4fc836802741477622385c5 authored by Jishnu Bhattacharya on 07 July 2023, 19:08:42 UTC
fix sizes of off-diagonal elements and conversions
Tip revision: f756596
julia_charmap.h
/* Array of {original codepoint, replacement codepoint} normalizations
   to perform on Julia identifiers, to canonicalize characters that
   are both easily confused and easily inputted by accident.

   Important: when this table is updated, also update the corresponding table
              in base/strings/unicode.jl */
static const uint32_t charmap[][2] = {
    { 0x025B, 0x03B5 }, // latin small letter open e -> greek small letter epsilon
    { 0x00B5, 0x03BC }, // micro sign -> greek small letter mu
    { 0x00B7, 0x22C5 }, // middot char -> dot operator (#25098)
    { 0x0387, 0x22C5 }, // Greek interpunct -> dot operator (#25098)
    { 0x2212, 0x002D }, // minus -> hyphen-minus (#26193)
    { 0x210F, 0x0127 }, // hbar -> small letter h with stroke (#48870)
};
back to top