isWASIComponentUnicodeScalar function

bool isWASIComponentUnicodeScalar(
  1. int value
)

Returns whether value is a Unicode scalar value.

Implementation

bool isWASIComponentUnicodeScalar(int value) =>
    value >= 0 && value <= 0x10ffff && (value < 0xd800 || value > 0xdfff);