inline bool is_whitespace(char s)
{
return (s == ' ' || s == '\t' || s == '\n');
}
2. 判断空格字
static inline bool is_space(char s)
{
return (s == ' ' || s == '\t');
}
inline bool is_octal_char(char s)
{
return (s >= '0' && s <= '7');
}
inline bool is_digit_char(char s)
{
return (s >= '0' && s <= '9');
}
inline bool is_hex_char(char s)
{
return ((s >= 'a' && s <= 'f')
|| (s >= 'A' && s <= 'F')
|| (s >= '0' && s <= '9')
);
}