C library:(ctype.h)

时间:2022-07-29 00:27:38

1, isalnum(): check whether c is either a decimal digit or an uppercase or lowercase letter.

2, isalpha

3, isblank(c++11)

4, iscntrl  : check whether c is a control character(参考 http://www.cplusplus.com/reference/cctype/iscntrl/)

5, isdigit

6, isgraph:可以打印出来的字符,除了 ' ' 字符(space character)

7, islower

8, isupper

9, isprint : check whether c is a printable character. space character return true;(空字符返回 true)

10, ispunct: check whether c is a punctuation character.(标点符号)

11, isspace:' '; '\t'; '\n'; '\v'; '\f'; '\r' 等都被检测为空格,返回 true. 一个空格类似于 isblank 函数。

12, isxdigit : 检查是否是十六进制数字

13, tolower:

14, toupper