#include #include #include "kernel.h" /****************************************************************************/ int isgraph(int c) { return ((c) >= 0x21 && (c) <= 0x7e); } /****************************************************************************/ int isprint(int c) { return ((c) >= 0x20 && (c) <= 0x7e); } /****************************************************************************/ int isalnum (int c) {return isdigit(c)||isalpha(c);} int isalpha (int c) {return islower(c)||isupper(c);} int iscntrl (int c) {return c<' ';} int isdigit (int c) {return (c>='0')&&(c<='9');} int islower (int c) {return (c>='a')&&(c<='z');} int ispunct (int c) { switch(c) { /* (C) Список символов пунктуации взят из программы Connect Д.Орлова и др. Copyright by KHEMZ, Inc. 1991, 1994 */ case '.': case ',': case '!': case '"': case '\'': case '(': case ')': case '*': case '+': case '-': case '/': case ':': case ';': case '<': case '=': case '>': case '?': case '[': case '\\': case ']': case '^': case '{': case '|': case '}': case '~': return 1; default: return 0; } } /****************************************************************************/ int isspace (int c) {if ((c==' ')||(c=='\t')) return 1; else return 0;} int isupper (int c) {return (c>='A')&&(c<='Z');} int isxdigit(int c) {return ((c>='0')&&(c<='9'))||((c>='a')&&(c<='f'))||((c>='A')&&(c<='F'));}