isDigit function

bool isDigit (int rune)

Returns true if rune represents a digit.

The definition of digit matches the Unicode 0x3? range of Western European digits.

Implementation

bool isDigit(int rune) => rune ^ 0x30 <= 9;