Commit 3fc07440ba1804d781c25e837c65014845d2fd4d

  • avatar
  • Petr Ovtchenkov (Committer)
  • Tue Aug 18 10:28:00 CEST 2009
  • avatar
  • David Deakins <DavidDeakins @gm…l.com> (Author)
  • Mon Aug 17 00:15:10 CEST 2009
Relocate the wide character support inlines for Windows CE.

Relocate the wide character support inlines
from ctype.h to wctype.h to better reflect
the standard location of these definitions.
  
8383
8484# undef _isctype
8585
86__inline int (iswalpha)(int c) { return iswctype((unsigned short)(c), _ALPHA); }
87__inline int (iswupper)(int c) { return iswctype((unsigned short)(c), _UPPER); }
88__inline int (iswlower)(int c) { return iswctype((unsigned short)(c), _LOWER); }
89__inline int (iswdigit)(int c) { return iswctype((unsigned short)(c), _DIGIT); }
90__inline int (iswxdigit)(int c) { return iswctype((unsigned short)(c), _HEX); }
91__inline int (iswspace)(int c) { return iswctype((unsigned short)(c), _SPACE); }
92__inline int (iswpunct)(int c) { return iswctype((unsigned short)(c), _PUNCT); }
93__inline int (iswalnum)(int c) { return iswctype((unsigned short)(c), _ALPHA|_DIGIT); }
94__inline int (iswprint)(int c) { return iswctype((unsigned short)(c), _BLANK|_PUNCT|_ALPHA|_DIGIT); }
95__inline int (iswgraph)(int c) { return iswctype((unsigned short)(c), _PUNCT|_ALPHA|_DIGIT); }
96__inline int (iswcntrl)(int c) { return iswctype((unsigned short)(c), _CONTROL); }
97__inline int (iswascii)(int c) { return ((unsigned)(c) < 0x80); }
98
9986# endif /* UNDER_CE */
10087
10188# endif /* _STLP_CTYPE_H_SEEN */
  
6464# else
6565# if defined (_STLP_HAS_INCLUDE_NEXT)
6666# include_next <wchar.h>
67# elif defined (_STLP_WCE_NET) && defined(_STLP_USE_WINCE_CRT_FUNCTIONS)
68# include <wchar.h>
6769# else
6870# include _STLP_NATIVE_C_HEADER(wchar.h)
6971# endif
268268
269269# if !defined (_STLP_WCE_NET)
270270using _STLP_VENDOR_CSTD::wcscoll;
271# endif
272# if !defined (_STLP_WCE_NET) || defined(_STLP_USE_WINCE_CRT_FUNCTIONS)
271273using _STLP_VENDOR_CSTD::wcsxfrm;
272274# endif
273275using _STLP_VENDOR_CSTD::wcscat;
  
3737# endif
3838#endif
3939
40#ifndef _STLP_WCTYPE_H_SEEN
41# define _STLP_WCTYPE_H_SEEN
42
43/* Undef convenience interfaces */
44# undef iswalpha
45# undef iswupper
46# undef iswlower
47# undef iswdigit
48# undef iswxdigit
49# undef iswspace
50# undef iswpunct
51# undef iswalnum
52# undef iswprint
53# undef iswcntrl
54# undef iswgraph
55# undef iswascii
56
57# if defined(UNDER_CE)
58__inline int (iswalpha)(int c) { return iswctype(c, _ALPHA); }
59__inline int (iswupper)(int c) { return iswctype(c, _UPPER); }
60__inline int (iswlower)(int c) { return iswctype(c, _LOWER); }
61__inline int (iswdigit)(int c) { return iswctype(c, _DIGIT); }
62__inline int (iswxdigit)(int c) { return iswctype(c, _HEX); }
63__inline int (iswspace)(int c) { return iswctype(c, _SPACE); }
64__inline int (iswpunct)(int c) { return iswctype(c, _PUNCT); }
65__inline int (iswalnum)(int c) { return iswctype(c, _ALPHA|_DIGIT); }
66__inline int (iswprint)(int c) { return iswctype(c, _BLANK|_PUNCT|_ALPHA|_DIGIT); }
67__inline int (iswgraph)(int c) { return iswctype(c, _PUNCT|_ALPHA|_DIGIT); }
68__inline int (iswcntrl)(int c) { return iswctype(c, _CONTROL); }
69__inline int (iswascii)(int c) { return ((unsigned)(c) < 0x80); }
70# endif
71#endif
72
4073#if (_STLP_OUTERMOST_HEADER_ID == 0x279)
4174# if ! defined (_STLP_DONT_POP_HEADER_ID)
4275# include <stl/_epilog.h>