man isalnum

在Linux系统中键入man isalnum,man isalpha,man isascii,man isblank,man iscntrl,man isdigit,man isgraph,man islower,man isprint,man ispunct,man isspace,man isupper,man isxdigit都会进入这个文档。

ISALPHA(3) Linux Programmer’s Manual ISALPAH(3)
Linux程序菜单

NAME
名称
isalnum,isalpha,isascii,isblank,iscntrl,isdigit,isgraph,islower,
isprint,ispunct,isspace,isupper,isxdigit - character classification

SYNOPSIS
语法摘要

    #include <ctype.h>

    int isalnum(int c);
    int isalpha(int c);
    int isascii(int c);
    int isblank(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);

Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
测试宏的特征是glibc的口径(查阅feature_test_macros(7))

isascii():_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
isbland():_XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or cc -std=c99

DESCRIPTION
描述
These functions check whether c,which must have the value of an
unsigned char or EOF,falls into a certain character class according to
the current locale.
这些函数检查是否必须具有unsigned char 或EOF的值的c,直到确认为按照当前场所的字符类。

isalnum()
checks for an alphanumeric character;it is equivalent to (isal-
pha(c) || isdigit(c)).
检查一个拼音数字字符;等价于(isalpha(c) || isdigit(c))。

isalpha()
checks for an alphabetic character;in the standard “c” locale,
it is equivalent to (isupper(c) || islower(c)).In some
locales,there may be additional characters for which isalpha()
is true-letters which are neither upper case nor lower case.
检查一个拼音文字字符;在标准“C”中,等价于(isupper(c)||islower(c))。在一些地方,为isalpha()补充既不是大写字母也不是小写字母的真实的字母。

isascii()
checks whether c is a 7-bit unsigned char value that fits into
the ASCII character set.
检查c是否是一个7位无符号字符值以便适合ASCII字符设置。

isblank()
checks for a blank character;that is,a space or a tab.
检查空格或制表符。

iscntrl()
checks for a control character.
检查控制字符。

isdigit()
checks for a digit (0 through 9).
检查数字(0到9)。

isgraph()
checks for any printable character except space.
检查任意可打印字符除了空格。

islower()
checks for a lower-case character.
检查小写字母。

isprint()
checks for any printable character including space.
检查可打印字符包括空格。

ispunct()
checks for any printable character which is not a space or an
alphanumeric character.
检查任意可打印字符,不是空格或字母数字的字符。

isspace()
checks for white-space characters.In the “C” and “POSIX”
locales,these are:space,form-feed (‘\f’),newline (‘\n’),
carriage return (‘\r’),horizontal tab (‘\t’),and vertical tab
(‘\v’).
检查空白字符。在“C”和“POSIX”里面,这些是空格,走纸换页(‘\f’),回车换行(‘\n’),回车(‘\r’),横向跳到下一制表位置(‘\t’),垂直制表符(‘\v’)。

isupper()
checks for an uppercase letter.
检查大写字母。

isxdigit()
checks for a hexadecimal digits,that is,one of
0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F .
检查十六进制数字,这些数字包括:0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F。

RETURN VALUE
返回值
The values returned are non-zero if the character c falls into the
tested class,and a zero value if not.
如果字符c是被测试类,返回值是非零,如果不,返回0值。

CONFORMING TO
参照
C99,4.3BSD. C89 specifies all of these functions except isascii() and
isblank().isascii() is a BSD extension and is also an SVr4 extension.
isblank() conforms to POSIX.1-2001 and C99 7.4.1.3. POSIX.1-2008 marks
isascii() as obsolete,noting that it cannot be used portably in a
localized application.
C99,4.3BSD.C89指定所有这些函数除了isascii()和isblank()。isascii()是一个BSD扩展并且也是一个SVr4扩展。isblank()遵守POSIX.1-2001和C99 7.4.1.3。POSIX.1-2008标记isascii()为过时的,注意到它不能在本地化应用程序中可移植地使用。

NOTES
笔记
The details of what characters belong into which class depend on the
current locale.For example,isupper() will not recognize an A-umiaut
(..A) as an uppercase letter in the default C locale.
哪些字符属于哪个类取决于当前区域设置的细节。例如,在默认的C中,isupper()将不能识别一个A-umiaut作为一个大写字母

SEE ALSO
也可查阅
iswalnum(3),iswalpha(3),iswblank(3),iswcntrl(3),iswdigit(3),isw-
graph(3),iswlower(3),iswprint(3),iswpunct(3),iswspace(3),iswup-
per(3),iswxdigit(3),setlocale(3),toascii(3),tolower(3),toupper(3),
ascii(7),locale(7)

COLOPHON
版权页
This page is part of release 3.22 of the Linux man-pages project.A
description of the project,and information about reporting bugs,can
be found at http://www.kernel.org/doc/man-pages/.
这页是Linux 3.22版本man-pages项目的一部分。项目描述和关于漏洞报告信息,可参阅网站http://www.kernel.org/doc/man-pages/

GNU 2009-03-15 ISALPHA(3)

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值