isHighSurrogate function

bool isHighSurrogate(
  1. int codeUnit
)

Whether codeUnit is a UTF-16 high surrogate.

Implementation

bool isHighSurrogate(int codeUnit) => codeUnit >>> 10 == 0x36;