getAstralNumberFromSurrogatePair function
Get the astral code point number based on surrogate pair numbers.
Implementation
int getAstralNumberFromSurrogatePair(int highSurrogate, int lowSurrogate) =>
(highSurrogate - _HIGH_SURROGATE_START) * 0x400 +
lowSurrogate -
_LOW_SURROGATE_START +
0x10000;