struct chcp1251 {
static bool is_alpha(char ch) {
return (ch >= -64 && ch <= -1)
|| ch == -88
|| ch == -72
|| (ch >= 65 && ch <= 90)
|| (ch >= 97 && ch <= 122);
}
static bool is_digit(char ch) {
return ch >= 48 && ch <= 57;
}
};