C&C++标准库学习--<ctype>--参考

C&C++标准库学习-<ctype>-参考

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 tolower(int c);
int toupper(int c);
isalnum
int isalnum(int c);
The function returns nonzero if c is any of:

a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9
or any other locale-specific alphabetic character.

isalpha
int isalpha(int c);
The function returns nonzero if c is any of:

a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
or any other locale-specific alphabetic character.

iscntrl
int iscntrl(int c);
The function returns nonzero if c is any of:

BEL BS CR FF HT NL VT
or any other implementation-defined control character.

isdigit
int isdigit(int c);
The function returns nonzero if c is any of:

0 1 2 3 4 5 6 7 8 9
isgraph
int isgraph(int c);
The function returns nonzero if c is any character for which either
isalnum or ispunct returns nonzero.

islower
int islower(int c);
The function returns nonzero if c is any of:

a b c d e f g h i j k l m n o p q r s t u v w x y z
or any other locale-specific lowercase character.

isprint
int isprint(int c);
The function returns nonzero if c is space or a character for which
isgraph returns nonzero.

ispunct
int ispunct(int c);
The function returns nonzero if c is any of:

! " # % & ' ( ) ; <
= > ? [ / ] * + , -
. / : ^ _ { | } ~
or any other implementation-defined punctuation character.

isspace
int isspace(int c);
The function returns nonzero if c is any of:

CR FF HT NL VT space
or any other locale-specific space character.

isupper
int isupper(int c);
The function returns nonzero if c is any of:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
or any other locale-specific uppercase character.

isxdigit
int isxdigit(int c);
The function returns nonzero if c is any of:

0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
tolower
int tolower(int c);
The function returns the corresponding lowercase letter if one exists
and if isupper(c); otherwise, it returns c.

toupper
int toupper(int c);
The function returns the corresponding uppercase letter if one exists
and if islower(c); otherwise, it returns c.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值