These are useful function from their name.And they are kernel function since:
System`Private`HasAnyCodesQ /@ {System`Private`LookupCodeByName,
System`Private`LookupNameByCode}
{True, True}
But how to use them?
These are useful function from their name.And they are kernel function since:
System`Private`HasAnyCodesQ /@ {System`Private`LookupCodeByName,
System`Private`LookupNameByCode}
{True, True}
But how to use them?
I tried random inputs until I got something to work. It looks like it has to do with character codes:
System`Private`LookupNameByCode[200]
"CapitalEGrave"
And then we can plug in the reverse:
System`Private`LookupCodeByName["CapitalEGrave"]
200
Edit by yode as J.M.'s comment
Grid[DeleteCases[{#, FromCharacterCode[#],
System`Private`LookupNameByCode[#]} & /@
Range[100, 174], {_, _, $Failed}], Frame -> All]
FromCharacterCode[] and ToCharacterCode[], but with the character names and not the characters themselves.
– J. M.'s missing motivation
Jan 22 '17 at 16:56
\! and \( etc.: System`Private`LookupNameByCode[ToCharacterCode["\!\(\)"]].
– Alexey Popkov
May 17 '17 at 14:11