별의 공부 블로그 🧑🏻‍💻
728x90
728x170

*[header][C library] cctype (ctype.h)


<cctype> (ctype.h)

Character handling functions
This header declares a set of functions to classify and transform individual characters.


Functions

These functions take the int equivalent of one character as parameter and return an int that can either be another character or a value representing a boolean value: an int value of 0 means false, and an int value different from 0represents true.

There are two sets of functions:

Character classification functions

They check whether the character passed as parameter belongs to a certain category:


Character conversion functions

Two functions that convert between letter cases:

For the first set, here is a map of how the original 127-character ASCII set is considered by each function (an x indicates that the function returns true on that character)

ASCII valuescharactersiscntrlisblankisspaceisupperislowerisalphaisdigitisxdigitisalnumispunctisgraphisprint
0x00 .. 0x08NUL, (other control codes)x
0x09tab ('\t')xxx
0x0A .. 0x0D(white-space control codes: '\f','\v','\n','\r')xx
0x0E .. 0x1F(other control codes)x
0x20space (' ')xxx
0x21 .. 0x2F!"#$%&'()*+,-./xxx
0x30 .. 0x390123456789xxxxx
0x3a .. 0x40:;<=>?@xxx
0x41 .. 0x46ABCDEFxxxxxx
0x47 .. 0x5AGHIJKLMNOPQRSTUVWXYZxxxxx
0x5B .. 0x60[\]^_`xxx
0x61 .. 0x66abcdefxxxxxx
0x67 .. 0x7Aghijklmnopqrstuvwxyzxxxxx
0x7B .. 0x7E{|}~xxx
0x7F(DEL)x

The characters in the extended character set (above 0x7F) may belong to diverse categories depending on the locale and the platform. As a general rule, ispunctisgraph and isprint return true on these for the standard C locale on most platforms supporting extended character sets.



내용 출처 : http://www.cplusplus.com/reference/cctype/

728x90
그리드형(광고전용)
⚠️AdBlock이 감지되었습니다. 원할한 페이지 표시를 위해 AdBlock을 꺼주세요.⚠️
starrykss
starrykss
별의 공부 블로그 🧑🏻‍💻


📖 Contents 📖