문자 분류Character Classification

이러한 각 루틴은 지정된 싱글바이트 문자, 와이드 문자 또는 멀티바이트 문자가 조건을 충족하는지 테스트합니다.Each of these routines tests a specified single-byte character, wide character, or multibyte character for satisfaction of a condition. (정의된 대로 0에서 127 사이의 ASCII 문자 집합은 모든 멀티바이트 문자 집합의 하위 집합입니다.(By definition, the ASCII character set between 0 and 127 are a subset of all multibyte-character sets. 예를 들어 일본어 가타카나에는 ASCII 문자와 비 ASCII 문자가 모두 포함됩니다.)For example, Japanese katakana includes ASCII as well as non-ASCII characters.)

테스트 조건은 로캘의 LC_CTYPE 범주 설정에 영향을 받습니다. 자세한 내용은 setlocale을 참조하세요.The test conditions are affected by the setting of the LC_CTYPE category setting of the locale; see setlocale for more information. _l 접미사가 없는 이러한 함수 버전은 이 로캘 종속 동작에 현재 로캘을 사용하며, _l 접미사가 있는 버전은 전달된 로캘 매개 변수를 대신 사용하는 경우를 제외하고는 동일합니다.The versions of these functions without the _l suffix use the current locale for this locale-dependent behavior; the versions with the _l suffix are identical except that they use the locale parameter passed in instead.

일반적으로 이러한 루틴은 사용자가 작성하고 우선적으로 고려하는 테스트보다 더 빠르게 실행됩니다.Generally these routines execute faster than tests you might write and should be favored over. 예를 들어 다음 코드는 isalpha(c) 호출보다 더 느리게 실행됩니다.For example, the following code executes slower than a call to isalpha(c):

if ((c >= 'A') && (c <= 'Z')) || ((c >= 'a') && (c <= 'z'))  
    return TRUE;  

문자 분류 루틴Character-Classification Routines

루틴Routine 문자 테스트 조건Character test condition
isalnum, iswalnum, _isalnum_l, _iswalnum_l, _ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_lisalnum, iswalnum, _isalnum_l, _iswalnum_l, _ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_l 영숫자Alphanumeric
_ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_l_ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_l 영숫자Alphanumeric
isalpha, iswalpha, _isalpha_l, _iswalpha_l, _ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_lisalpha, iswalpha, _isalpha_l, _iswalpha_l, _ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_l AlphabeticAlphabetic
isascii, __isascii, iswasciiisascii, __isascii, iswascii ASCIIASCII
isblank, iswblank, _isblank_l, _iswblank_l, _ismbcsblank, _ismbcsblank_lisblank, iswblank, _isblank_l, _iswblank_l, _ismbcsblank, _ismbcsblank_l 빈 상태(공백 또는 가로 탭)Blank (space or horizontal tab)
iscntrl, iswcntrl, _iscntrl_l, _iswcntrl_liscntrl, iswcntrl, _iscntrl_l, _iswcntrl_l 컨트롤Control
iscsym, iscsymf, __iscsym, __iswcsym, __iscsymf, __iswcsymf, _iscsym_l, _iswcsym_l, _iscsymf_l, _iswcsymf_liscsym, iscsymf, __iscsym, __iswcsym, __iscsymf, __iswcsymf, _iscsym_l, _iswcsym_l, _iscsymf_l, _iswcsymf_l 문자, 밑줄 또는 숫자Letter, underscore, or digit
iscsym, iscsymf, __iscsym, __iswcsym, __iscsymf, __iswcsymf, _iscsym_l, _iswcsym_l, _iscsymf_l, _iswcsymf_liscsym, iscsymf, __iscsym, __iswcsym, __iscsymf, __iswcsymf, _iscsym_l, _iswcsym_l, _iscsymf_l, _iswcsymf_l 문자 또는 밑줄Letter or underscore
isdigit, iswdigit, _isdigit_l, _iswdigit_l, _ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_lisdigit, iswdigit, _isdigit_l, _iswdigit_l, _ismbcalnum, _ismbcalnum_l, _ismbcalpha, _ismbcalpha_l, _ismbcdigit, _ismbcdigit_l 10진수Decimal digit
isgraph, iswgraph, _isgraph_l, _iswgraph_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_lisgraph, iswgraph, _isgraph_l, _iswgraph_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_l 공백 이외에 인쇄 가능Printable other than space
islower, iswlower, _islower_l, _iswlower_l, _ismbclower, _ismbclower_l, _ismbcupper, _ismbcupper_lislower, iswlower, _islower_l, _iswlower_l, _ismbclower, _ismbclower_l, _ismbcupper, _ismbcupper_l 소문자Lowercase
_ismbchira, _ismbchira_l, _ismbckata, _ismbckata_l_ismbchira, _ismbchira_l, _ismbckata, _ismbckata_l 히라가나Hiragana
_ismbchira, _ismbchira_l, _ismbckata, _ismbckata_l_ismbchira, _ismbchira_l, _ismbckata, _ismbckata_l 가타카나Katakana
_ismbclegal, _ismbclegal_l, _ismbcsymbol, _ismbcsymbol_l_ismbclegal, _ismbclegal_l, _ismbcsymbol, _ismbcsymbol_l 유효한 멀티바이트 문자Legal multibyte character
_ismbcl0, _ismbcl0_l, _ismbcl1, _ismbcl1_l, _ismbcl2, _ismbcl2_l_ismbcl0, _ismbcl0_l, _ismbcl1, _ismbcl1_l, _ismbcl2, _ismbcl2_l 일본 수준 0 멀티바이트 문자Japan-level 0 multibyte character
_ismbcl0, _ismbcl0_l, _ismbcl1, _ismbcl1_l, _ismbcl2, _ismbcl2_l_ismbcl0, _ismbcl0_l, _ismbcl1, _ismbcl1_l, _ismbcl2, _ismbcl2_l 일본 수준 1 멀티바이트 문자Japan-level 1 multibyte character
_ismbcl0, _ismbcl0_l, _ismbcl1, _ismbcl1_l, _ismbcl2, _ismbcl2_l_ismbcl0, _ismbcl0_l, _ismbcl1, _ismbcl1_l, _ismbcl2, _ismbcl2_l 일본 수준 2 멀티바이트 문자Japan-level 2 multibyte character
_ismbclegal, _ismbclegal_l, _ismbcsymbol, _ismbcsymbol_l_ismbclegal, _ismbclegal_l, _ismbcsymbol, _ismbcsymbol_l 영숫자가 아닌 멀티바이트 문자Non-alphanumeric multibyte character
isprint, iswprint, _isprint_l, _iswprint_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_lisprint, iswprint, _isprint_l, _iswprint_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_l 인쇄 가능Printable
ispunct, iswpunct, _ispunct_l, _iswpunct_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_lispunct, iswpunct, _ispunct_l, _iswpunct_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_l 문장 부호Punctuation
isspace, iswspace, _isspace_l, _iswspace_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_lisspace, iswspace, _isspace_l, _iswspace_l, _ismbcgraph, _ismbcgraph_l, _ismbcprint, _ismbcprint_l, _ismbcpunct, _ismbcpunct_l, _ismbcblank, _ismbcblank_l, _ismbcspace, _ismbcspace_l 공백White-space
Isupper, iswupper, _ismbclower, _ismbclower_l, _ismbcupper, _ismbcupper_lIsupper, iswupper, _ismbclower, _ismbclower_l, _ismbcupper, _ismbcupper_l 대문자Uppercase
_isctype, iswctype, _isctype_l, _iswctype_l_isctype, iswctype, _isctype_l, _iswctype_l desc 인수로 지정된 속성Property specified by desc argument
isxdigit, iswxdigit, _isxdigit_l, _iswxdigit_lisxdigit, iswxdigit, _isxdigit_l, _iswxdigit_l 16진수Hexadecimal digit
_mbclen, mblen, _mblen_l_mbclen, mblen, _mblen_l 올바른 멀티바이트 문자의 길이를 반환합니다. 결과는 현재 로캘의 LC_CTYPE 범주 설정에 따라 달라집니다.Return length of valid multibyte character; result depends on LC_CTYPE category setting of current locale

참고 항목See Also

범주별 런타임 루틴Run-Time Routines by Category