isAsciiWhitespaceCodeUnit function

bool isAsciiWhitespaceCodeUnit(
  1. int codeUnit
)

Implementation

@pragma('vm:prefer-inline')
bool isAsciiWhitespaceCodeUnit(int codeUnit) {
  // Tab, LF, VT, FF, CR, Space
  return codeUnit == 0x09 ||
      codeUnit == 0x0A ||
      codeUnit == 0x0B ||
      codeUnit == 0x0C ||
      codeUnit == 0x0D ||
      codeUnit == 0x20;
}