tb Allow empty lines
This commit is contained in:
@ -14,4 +14,17 @@
|
||||
#define string_chr_isascii(c) (!((c) < 0 || (c) > 0x7f))
|
||||
#define string_chr_isxdigit(c) (((c) >= '0' && (c) <= '9') || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
|
||||
|
||||
#define STRING_CHECK_ALL(str, macro, okp) \
|
||||
do { \
|
||||
(okp) = true; \
|
||||
char *__p = (str); \
|
||||
while (*__p) { \
|
||||
if (!macro(*__p)) { \
|
||||
(okp) = false; \
|
||||
break; \
|
||||
} \
|
||||
__p++; \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#endif // ULIB_STRING_CHAR_H_
|
||||
|
Reference in New Issue
Block a user