ctype.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 115 行
3
115 行
.\" SCCSID: @(#)ctype.3 2.7 8/13/87.TH ctype 3 .SH Nameisalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii \- character classification macros.SH Syntax.B #include <ctype.h>.PP.B int isalpha (\fIc\fP).PP.B int c;.SH Description.NXR "ctype keyword".NXR "isalpha subroutine".NXR "isupper subroutine".NXR "islower subroutine".NXR "isdigit subroutine".NXR "isalnum subroutine".NXR "isspace subroutine".NXR "ispunct subroutine".NXR "isprint subroutine".NXR "isprint subroutine".NXR "isgraph subroutine".NXR "iscntrl subroutine".NXR "isascii subroutine".NXR "ASCII character" "classifying".PPThese macros classify character-coded integer values according to the rules of the coded character set (codeset) identified by the last successful call to.PN setlocalecategory.PN LC_CTYPE .All macros return non-zero for true and zero for false..PPIf.PN setlocalecategory.PN LC_CTYPEhas not been called successfully, or if character classification information is not available for a supported language, then characters are classified according to the rules of the ASCII 7-bit coded character set, returning 0 for values above octal 0177..PPThe macro.PN isascii provides a result for all integer values.The rest provide a result for EOF and values in the character range of the codeset identified by the last successful call to.PN setlocalecategory.PN LC_CTYPE ..TP 15n.PN isalpha.I cis a letter.TP.PN isupper.I cis an uppercase letter.TP.PN islower .I cis a lowercase letter.TP.PN isdigit.I cis a digit.TP.PN isxdigit.I cis a hexadecimal digit, by default [0-9], [A-F], or [a-f].TP.PN isalnum.I cis an alphanumeric character.TP.PN isspace.I cis a space, tab, carriage return, new line, or form feed.TP.PN ispunct.I cis a punctuation character (neither control, alphanumeric, nor space).TP.PN isprint.I cis a printing character, by default code 040(8) (space) through 0176 (tilde).TP.PN isgraph.I cis a printing character, like.PN isprintexcept false for space.TP.PN iscntrl.I cis a delete character (0177) or ordinary control character(less than 040) except for space characters.TP.PN isascii.I cis an ASCII character, code less than 0200.SS International Environment.IP LC_CTYPE 15If this environment variable is set and valid,.PN ctypeuses the international language database named in the definition to determine character classification rules..IP LANGIf this environment variable is set and valid, .PN ctypeuses the international language database named in the definition to determinethe character classification rules. If .PN LC_CTYPEis defined, that definition supercedes the definition of .PN LANG ..SH See Alsoconv(3), setlocale(3), stdio(3s), environ(5int), ascii(7).br.I "Guide to Developing International Software"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?