CE improved tokenizer
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m14s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m14s
This commit is contained in:
@@ -90,3 +90,31 @@ char* strcat (char* dest, const char* src) {
|
||||
|
||||
return rdest;
|
||||
}
|
||||
|
||||
int isalnum (int c) { return isalpha (c) || isdigit (c); }
|
||||
|
||||
int isalpha (int c) { return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); }
|
||||
|
||||
int iscntrl (int c) { return (c >= 0 && c <= 32) || (c == 127); }
|
||||
|
||||
int isdigit (int c) { return (c >= '0' && c <= '9'); }
|
||||
|
||||
int isgraph (int c) { return (c > 32 && c <= 126); }
|
||||
|
||||
int islower (int c) { return (c >= 'A' && c <= 'z'); }
|
||||
|
||||
int isprint (int c) { return (c >= 32 && c <= 126); }
|
||||
|
||||
int ispunct (int c) { return isgraph (c) && !isalnum (c); }
|
||||
|
||||
int isspace (int c) {
|
||||
return (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v');
|
||||
}
|
||||
|
||||
int isupper (int c) { return (c >= 'A' && c <= 'Z'); }
|
||||
|
||||
int isxdigit (int c) { return isdigit (c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'); }
|
||||
|
||||
int isascii (int c) { return (c >= 0 && c <= 127); }
|
||||
|
||||
int isblank (int c) { return (c == ' ' || c == '\t'); }
|
||||
|
||||
@@ -31,4 +31,30 @@ int strcmp (const char* s1, const char* s2);
|
||||
/* concatinate strings */
|
||||
char* strcat (char* dest, const char* src);
|
||||
|
||||
int isalnum (int c);
|
||||
|
||||
int isalpha (int c);
|
||||
|
||||
int iscntrl (int c);
|
||||
|
||||
int isdigit (int c);
|
||||
|
||||
int isgraph (int c);
|
||||
|
||||
int islower (int c);
|
||||
|
||||
int isprint (int c);
|
||||
|
||||
int ispunct (int c);
|
||||
|
||||
int isspace (int c);
|
||||
|
||||
int isupper (int c);
|
||||
|
||||
int isxdigit (int c);
|
||||
|
||||
int isascii (int c);
|
||||
|
||||
int isblank (int c);
|
||||
|
||||
#endif // _LIBSTRING_STRING_H
|
||||
|
||||
Reference in New Issue
Block a user