STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Functions
ctype.h File Reference
#include <corecrt.h>
#include <corecrt_wctype.h>

Go to the source code of this file.

Macros

#define _INC_CTYPE
 
#define MB_CUR_MAX   ___mb_cur_max_func()
 
#define __mb_cur_max   (___mb_cur_max_func())
 
#define __chvalidchk(a, b)   (__PCTYPE_FUNC[(a)] & (b))
 
#define __ascii_isalpha(c)   ( __chvalidchk(c, _ALPHA))
 
#define __ascii_isdigit(c)   ( __chvalidchk(c, _DIGIT))
 
#define __ascii_tolower(c)   ( (((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c) )
 
#define __ascii_toupper(c)   ( (((c) >= 'a') && ((c) <= 'z')) ? ((c) - 'a' + 'A') : (c) )
 
#define __ascii_iswalpha(c)   ( ('A' <= (c) && (c) <= 'Z') || ( 'a' <= (c) && (c) <= 'z'))
 
#define __ascii_iswdigit(c)   ( '0' <= (c) && (c) <= '9')
 
#define __ascii_towlower(c)   ( (((c) >= L'A') && ((c) <= L'Z')) ? ((c) - L'A' + L'a') : (c) )
 
#define __ascii_towupper(c)   ( (((c) >= L'a') && ((c) <= L'z')) ? ((c) - L'a' + L'A') : (c) )
 
#define __ascii_isalpha_l(c, locale)   (_chvalidchk_l(c, _ALPHA, locale))
 
#define __ascii_isdigit_l(c, locale)   (_chvalidchk_l(c, _DIGIT, locale))
 
#define _isalpha_l(c, locale)   _ischartype_l(c, _ALPHA, locale)
 
#define _isupper_l(c, locale)   _ischartype_l(c, _UPPER, locale)
 
#define _islower_l(c, locale)   _ischartype_l(c, _LOWER, locale)
 
#define _isdigit_l(c, locale)   _ischartype_l(c, _DIGIT, locale)
 
#define _isxdigit_l(c, locale)   _ischartype_l(c, _HEX, locale)
 
#define _isspace_l(c, locale)   _ischartype_l(c, _SPACE, locale)
 
#define _ispunct_l(c, locale)   _ischartype_l(c, _PUNCT, locale)
 
#define _isblank_l(c, locale)   (((c) == '\t') ? _BLANK : _ischartype_l(c, _BLANK, locale))
 
#define _isalnum_l(c, locale)   _ischartype_l(c, _ALPHA | _DIGIT, locale)
 
#define _isprint_l(c, locale)   _ischartype_l(c, _BLANK | _PUNCT | _ALPHA | _DIGIT, locale)
 
#define _isgraph_l(c, locale)   _ischartype_l(c, _PUNCT | _ALPHA | _DIGIT, locale)
 
#define _iscntrl_l(c, locale)   _ischartype_l(c, _CONTROL, locale)
 
#define _tolower(c)   ((c) - 'A' + 'a')
 
#define _toupper(c)   ((c) - 'a' + 'A')
 
#define __isascii(c)   ((unsigned)(c) < 0x80)
 
#define __toascii(c)   ((c) & 0x7f)
 
#define __iscsymf(c)   (isalpha(c) || ((c) == '_'))
 
#define __iscsym(c)   (isalnum(c) || ((c) == '_'))
 
#define __iswcsymf(c)   (iswalpha(c) || ((c) == '_'))
 
#define __iswcsym(c)   (iswalnum(c) || ((c) == '_'))
 
#define _iscsymf_l(c, p)   (_isalpha_l(c, p) || ((c) == '_'))
 
#define _iscsym_l(c, p)   (_isalnum_l(c, p) || ((c) == '_'))
 
#define _iswcsymf_l(c, p)   (iswalpha(c) || ((c) == '_'))
 
#define _iswcsym_l(c, p)   (iswalnum(c) || ((c) == '_'))
 
#define isascii   __isascii
 
#define toascii   __toascii
 
#define iscsymf   __iscsymf
 
#define iscsym   __iscsym
 

Functions

_CRT_BEGIN_C_HEADER _Check_return_ _ACRTIMP int __cdecl _isctype (_In_ int _C, _In_ int _Type)
 
_Check_return_ _ACRTIMP int __cdecl _isctype_l (_In_ int _C, _In_ int _Type, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isalpha (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isalpha_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isupper (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isupper_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl islower (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _islower_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
 _When_ (_Param_(1)==0, _Post_equal_to_(0)) _Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isdigit(_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isdigit_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl isxdigit (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isxdigit_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _isspace_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl ispunct (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _ispunct_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl isblank (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isblank_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isalnum (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isalnum_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl isprint (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isprint_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl isgraph (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _isgraph_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl iscntrl (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _iscntrl_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl _tolower (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _tolower_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl _toupper (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl _toupper_l (_In_ int _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl __isascii (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl __toascii (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl __iscsymf (_In_ int _C)
 
_Check_return_ _ACRTIMP int __cdecl __iscsym (_In_ int _C)
 
 _Post_satisfies_ (return > 0 &&return< 5) _ACRTIMP int __cdecl ___mb_cur_max_func(void)
 
__inline __crt_locale_data_public *__CRTDECL __acrt_get_locale_data_prefix (void const volatile *const _LocalePointers)
 
__inline int __CRTDECL _chvalidchk_l (_In_ int const _C, _In_ int const _Mask, _In_opt_ _locale_t const _Locale)
 
__inline int __CRTDECL _ischartype_l (_In_ int const _C, _In_ int const _Mask, _In_opt_ _locale_t const _Locale)
 

Macro Definition Documentation

#define __ascii_isalpha (   c)    ( __chvalidchk(c, _ALPHA))
#define __ascii_isalpha_l (   c,
  locale 
)    (_chvalidchk_l(c, _ALPHA, locale))
#define __ascii_isdigit (   c)    ( __chvalidchk(c, _DIGIT))
#define __ascii_isdigit_l (   c,
  locale 
)    (_chvalidchk_l(c, _DIGIT, locale))
#define __ascii_iswalpha (   c)    ( ('A' <= (c) && (c) <= 'Z') || ( 'a' <= (c) && (c) <= 'z'))
#define __ascii_iswdigit (   c)    ( '0' <= (c) && (c) <= '9')
#define __ascii_tolower (   c)    ( (((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c) )
#define __ascii_toupper (   c)    ( (((c) >= 'a') && ((c) <= 'z')) ? ((c) - 'a' + 'A') : (c) )
#define __ascii_towlower (   c)    ( (((c) >= L'A') && ((c) <= L'Z')) ? ((c) - L'A' + L'a') : (c) )
#define __ascii_towupper (   c)    ( (((c) >= L'a') && ((c) <= L'z')) ? ((c) - L'a' + L'A') : (c) )
#define __chvalidchk (   a,
 
)    (__PCTYPE_FUNC[(a)] & (b))
#define __isascii (   c)    ((unsigned)(c) < 0x80)
#define __iscsym (   c)    (isalnum(c) || ((c) == '_'))
#define __iscsymf (   c)    (isalpha(c) || ((c) == '_'))
#define __iswcsym (   c)    (iswalnum(c) || ((c) == '_'))
#define __iswcsymf (   c)    (iswalpha(c) || ((c) == '_'))
#define __mb_cur_max   (___mb_cur_max_func())
#define __toascii (   c)    ((c) & 0x7f)
#define _INC_CTYPE
#define _isalnum_l (   c,
  locale 
)    _ischartype_l(c, _ALPHA | _DIGIT, locale)
#define _isalpha_l (   c,
  locale 
)    _ischartype_l(c, _ALPHA, locale)
#define _isblank_l (   c,
  locale 
)    (((c) == '\t') ? _BLANK : _ischartype_l(c, _BLANK, locale))
#define _iscntrl_l (   c,
  locale 
)    _ischartype_l(c, _CONTROL, locale)
#define _iscsym_l (   c,
 
)    (_isalnum_l(c, p) || ((c) == '_'))
#define _iscsymf_l (   c,
 
)    (_isalpha_l(c, p) || ((c) == '_'))
#define _isdigit_l (   c,
  locale 
)    _ischartype_l(c, _DIGIT, locale)
#define _isgraph_l (   c,
  locale 
)    _ischartype_l(c, _PUNCT | _ALPHA | _DIGIT, locale)
#define _islower_l (   c,
  locale 
)    _ischartype_l(c, _LOWER, locale)
#define _isprint_l (   c,
  locale 
)    _ischartype_l(c, _BLANK | _PUNCT | _ALPHA | _DIGIT, locale)
#define _ispunct_l (   c,
  locale 
)    _ischartype_l(c, _PUNCT, locale)
#define _isspace_l (   c,
  locale 
)    _ischartype_l(c, _SPACE, locale)
#define _isupper_l (   c,
  locale 
)    _ischartype_l(c, _UPPER, locale)
#define _iswcsym_l (   c,
 
)    (iswalnum(c) || ((c) == '_'))
#define _iswcsymf_l (   c,
 
)    (iswalpha(c) || ((c) == '_'))
#define _isxdigit_l (   c,
  locale 
)    _ischartype_l(c, _HEX, locale)
#define _tolower (   c)    ((c) - 'A' + 'a')
#define _toupper (   c)    ((c) - 'a' + 'A')
#define isascii   __isascii
#define iscsym   __iscsym
#define iscsymf   __iscsymf
#define MB_CUR_MAX   ___mb_cur_max_func()
#define toascii   __toascii

Function Documentation

__inline __crt_locale_data_public* __CRTDECL __acrt_get_locale_data_prefix ( void const volatile *const  _LocalePointers)
145  {
146  _locale_t const _TypedLocalePointers = (_locale_t)_LocalePointers;
147  return (__crt_locale_data_public*)_TypedLocalePointers->locinfo;
148  }
Definition: corecrt.h:489
Definition: corecrt.h:482
struct __crt_locale_data * locinfo
Definition: corecrt.h:491
__crt_locale_pointers * _locale_t
Definition: corecrt.h:495
_Check_return_ _ACRTIMP int __cdecl __isascii ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl __iscsym ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl __iscsymf ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl __toascii ( _In_ int  _C)
__inline int __CRTDECL _chvalidchk_l ( _In_ int const  _C,
_In_ int const  _Mask,
_In_opt_ _locale_t const  _Locale 
)
159  {
160  #ifdef _DEBUG
161  return _chvalidator_l(_Locale, _C, _Mask);
162  #else
163  if (_Locale)
164  {
166  }
167 
168  return __chvalidchk(_C, _Mask);
169  #endif
170  }
__inline __crt_locale_data_public *__CRTDECL __acrt_get_locale_data_prefix(void const volatile *const _LocalePointers)
Definition: ctype.h:144
unsigned short const * _locale_pctype
Definition: corecrt.h:484
_In_ wchar_t _C
Definition: wchar.h:253
#define __chvalidchk(a, b)
Definition: ctype.h:113
_Check_return_opt_ _In_opt_ _locale_t const _Locale
Definition: corecrt_wconio.h:289
_CRT_MANAGED_FP_DEPRECATE _In_ unsigned int _Mask
Definition: float.h:235
_Check_return_ _ACRTIMP int __cdecl _isalnum_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isalpha_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isblank_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
__inline int __CRTDECL _ischartype_l ( _In_ int const  _C,
_In_ int const  _Mask,
_In_opt_ _locale_t const  _Locale 
)
180  {
181  if (_Locale && __acrt_get_locale_data_prefix(_Locale)->_locale_mb_cur_max > 1)
182  {
183  return _isctype_l(_C, _Mask, _Locale);
184  }
185 
186  return _chvalidchk_l(_C, _Mask, _Locale);
187  }
__inline int __CRTDECL _chvalidchk_l(_In_ int const _C, _In_ int const _Mask, _In_opt_ _locale_t const _Locale)
Definition: ctype.h:154
__inline __crt_locale_data_public *__CRTDECL __acrt_get_locale_data_prefix(void const volatile *const _LocalePointers)
Definition: ctype.h:144
_In_ wchar_t _C
Definition: wchar.h:253
_Check_return_ _ACRTIMP int __cdecl _isctype_l(_In_ int _C, _In_ int _Type, _In_opt_ _locale_t _Locale)
_Check_return_opt_ _In_opt_ _locale_t const _Locale
Definition: corecrt_wconio.h:289
_CRT_MANAGED_FP_DEPRECATE _In_ unsigned int _Mask
Definition: float.h:235
_Check_return_ _ACRTIMP int __cdecl _iscntrl_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_CRT_BEGIN_C_HEADER _Check_return_ _ACRTIMP int __cdecl _isctype ( _In_ int  _C,
_In_ int  _Type 
)
_Check_return_ _ACRTIMP int __cdecl _isctype_l ( _In_ int  _C,
_In_ int  _Type,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isdigit_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isgraph_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _islower_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isprint_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _ispunct_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isspace_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isupper_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _isxdigit_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Post_satisfies_ ( return  )
_Check_return_ _ACRTIMP int __cdecl _tolower_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_Check_return_ _ACRTIMP int __cdecl _toupper_l ( _In_ int  _C,
_In_opt_ _locale_t  _Locale 
)
_When_ ( _Param_(1)  = =0,
_Post_equal_to_(0)   
)
_Check_return_ _ACRTIMP int __cdecl isblank ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl iscntrl ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl isgraph ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl isprint ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl ispunct ( _In_ int  _C)
_Check_return_ _ACRTIMP int __cdecl isxdigit ( _In_ int  _C)