Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

<cwctype> 

Defines the macros traditionally defined in the Standard C library header <wctype.h>.


#if <TRADITIONAL C HEADERS>
   #include <wctype.h>
namespace std {
   using ::iswalnum; 
   using ::iswalpha; 
   using ::iswcntrl;
   using ::iswctype; 
   using ::iswdigit; 
   using ::iswgraph;
   using ::iswlower; 
   using ::iswprint; 
   using ::iswpunct;
   using ::iswspace; 
   using ::iswupper; 
   using ::iswxdigit;
   using ::towctrans; 
   using ::towlower; 
   using ::towupper;
   using ::wctrans; 
   using ::wctrans_t; 
   using ::wctype;
   using ::wctype_t;
   using ::wint_t; 
}

#undef iswalnum
#undef iswalpha
#undef iswcntrl
#undef iswctype
#undef iswdigit
#undef iswgraph
#undef iswlower
#undef iswprint
#undef iswpunct
#undef iswspace
#undef iswupper
#undef iswxdigit
#undef towctrans
#undef towlower
#undef towupper
#undef wctrans
#undef wctype

#endif

Including this header also ensures that the names declared with external linkage in the Standard C library header are declared in the std namespace. In this implementation, the names may or may not also be declared in the global namespace, depending on the specific translation environment.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.