isLowSurrogate static method

bool isLowSurrogate(
  1. int value
)

Returns true iff the given value is a valid UTF-16 low (second) surrogate. The value must be a UTF-16 code unit, meaning it must be in the range 0x0000-0xFFFF.

See also:

Implementation

static bool isLowSurrogate(int value) {
  assert(_isUTF16(value));
  return value & 0xFC00 == 0xDC00;
}