getAstralNumberFromSurrogatePair function

int getAstralNumberFromSurrogatePair(
  1. int highSurrogate,
  2. int lowSurrogate
)

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;