isWordBoundary static method
Implementation
static bool isWordBoundary(String char) {
if (char.isEmpty) return true;
final codeUnit = char.codeUnitAt(0);
return codeUnit == 32 || // Space
(codeUnit >= 33 && codeUnit <= 47) || // Punctuation !"#$%&'()*+,-./
(codeUnit >= 58 && codeUnit <= 64) || // Punctuation :;<=>?@
(codeUnit >= 91 && codeUnit <= 96) || // Punctuation [\]^_`
(codeUnit >= 123 && codeUnit <= 126); // Punctuation {|}~
}