isFormatCode static method

bool isFormatCode(
  1. int code
)

Zero-width joiners, direction marks and other invisible format characters.

Implementation

static bool isFormatCode(int code) => (code >= 0x200B && code <= 0x200F) || (code >= 0x202A && code <= 0x202E) || (code >= 0x2060 && code <= 0x2069) || code == 0xFEFF || code == 0x061C;