首页 > 其他 > 详细

C library:<cctype>(ctype.h)

时间:2019-02-25 20:27:23      阅读:146      评论:0      收藏:0      [点我收藏+]

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

C library:<cctype>(ctype.h)

原文:https://www.cnblogs.com/zpcoding/p/10433026.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!