Utils.c 254 B

12345678910111213
  1. #include "utils/Utils.h"
  2. bool isLetter(int c) {
  3. return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
  4. }
  5. bool isNumber(int c) {
  6. return c >= '0' && c <= '9';
  7. }
  8. bool isAllowedInName(int c) {
  9. return isLetter(c) || isNumber(c) || c == '_';
  10. }