if (!name.used) return F_none;
- if (!((uint16_t) (name.string[0] - 'a') < 26 || (uint16_t) (name.string[0] - 'A') < 26)) {
+ if ((uint16_t) (name.string[0] - 'a') > 25 && (uint16_t) (name.string[0] - 'A') > 25) {
if (name.string[0] != '_') return F_false;
}
for (f_array_length_t i = 1; i < name.used; ++i) {
- if (!((uint16_t) (name.string[i] - 'a') < 26 || (uint16_t) (name.string[i] - 'A') < 26 || (uint16_t) (name.string[i] - '0') < 10)) {
+ if ((uint16_t) (name.string[i] - 'a') > 25 && (uint16_t) (name.string[i] - 'A') > 25 && (uint16_t) (name.string[i] - '0') > 9) {
if (name.string[i] != '_') return F_false;
}
} // for