Returns true iff ch belongs to the given classification. Unlike similar functions in , these aren't affected by the current locale.
| 7984 | // similar functions in <ctype.h>, these aren't affected by the |
| 7985 | // current locale. |
| 7986 | bool IsAsciiDigit(char ch) { return '0' <= ch && ch <= '9'; } |
| 7987 | bool IsAsciiPunct(char ch) { |
| 7988 | return IsInSet(ch, "^-!\"#$%&'()*+,./:;<=>?@[\\]_`{|}~"); |
| 7989 | } |