ReactOS  0.4.14-dev-98-gb0d4763
wctype.h File Reference
#include <crtdefs.h>
Include dependency graph for wctype.h:

Go to the source code of this file.

Macros

#define WEOF   (wint_t)(0xFFFF)
 
#define _CRT_CTYPEDATA_DEFINED
 
#define __PCTYPE_FUNC   __pctype_func()
 
#define __pctype_func()   (*_imp___pctype)
 
#define _pctype   (*_imp___pctype)
 
#define _CRT_WCTYPEDATA_DEFINED
 
#define _wctype   (*_imp___wctype)
 
#define _pwctype   (*_imp___pwctype)
 
#define __pwctype_func()   (*_imp___pwctype)
 
#define _UPPER   0x1
 
#define _LOWER   0x2
 
#define _DIGIT   0x4
 
#define _SPACE   0x8
 
#define _PUNCT   0x10
 
#define _CONTROL   0x20
 
#define _BLANK   0x40
 
#define _HEX   0x80
 
#define _LEADBYTE   0x8000
 
#define _ALPHA   (0x0100|_UPPER|_LOWER)
 
#define _WCTYPE_DEFINED
 
#define _WCTYPE_INLINE_DEFINED
 
#define iswalpha(_c)   (iswctype(_c,_ALPHA))
 
#define iswupper(_c)   (iswctype(_c,_UPPER))
 
#define iswlower(_c)   (iswctype(_c,_LOWER))
 
#define iswdigit(_c)   (iswctype(_c,_DIGIT))
 
#define iswxdigit(_c)   (iswctype(_c,_HEX))
 
#define iswspace(_c)   (iswctype(_c,_SPACE))
 
#define iswpunct(_c)   (iswctype(_c,_PUNCT))
 
#define iswalnum(_c)   (iswctype(_c,_ALPHA|_DIGIT))
 
#define iswprint(_c)   (iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT))
 
#define iswgraph(_c)   (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))
 
#define iswcntrl(_c)   (iswctype(_c,_CONTROL))
 
#define iswascii(_c)   ((unsigned)(_c) < 0x80)
 
#define isleadbyte(c)   (__pctype_func()[(unsigned char)(c)] & _LEADBYTE)
 

Typedefs

typedef wchar_t wctrans_t
 

Functions

int __cdecl iswalpha (wint_t)
 
int __cdecl iswupper (wint_t)
 
int __cdecl iswlower (wint_t)
 
int __cdecl iswdigit (wint_t)
 
int __cdecl iswxdigit (wint_t)
 
int __cdecl iswspace (wint_t)
 
int __cdecl iswpunct (wint_t)
 
int __cdecl iswalnum (wint_t)
 
int __cdecl iswprint (wint_t)
 
int __cdecl iswgraph (wint_t)
 
int __cdecl iswcntrl (wint_t)
 
int __cdecl iswascii (wint_t)
 
int __cdecl isleadbyte (int)
 
wint_t __cdecl towupper (wint_t)
 
wint_t __cdecl towlower (wint_t)
 
int __cdecl iswctype (wint_t, wctype_t)
 
_CRTIMP int __cdecl __iswcsymf (wint_t)
 
_CRTIMP int __cdecl __iswcsym (wint_t)
 
int __cdecl is_wctype (wint_t, wctype_t)
 
_CRTIMP int __cdecl iswblank (wint_t _C)
 
wint_t __cdecl towctrans (wint_t, wctrans_t)
 
wctrans_t __cdecl wctrans (const char *)
 
wctype_t __cdecl wctype (const char *)
 

Variables

unsigned short ** _imp___pctype
 
unsigned short ** _imp___wctype
 
unsigned short ** _imp___pwctype
 

Macro Definition Documentation

◆ __PCTYPE_FUNC

#define __PCTYPE_FUNC   __pctype_func()

Definition at line 30 of file wctype.h.

◆ __pctype_func

#define __pctype_func (   void)    (*_imp___pctype)

Definition at line 34 of file wctype.h.

◆ __pwctype_func

#define __pwctype_func (   void)    (*_imp___pwctype)

Definition at line 68 of file wctype.h.

◆ _ALPHA

#define _ALPHA   (0x0100|_UPPER|_LOWER)

Definition at line 85 of file wctype.h.

◆ _BLANK

#define _BLANK   0x40

Definition at line 81 of file wctype.h.

◆ _CONTROL

#define _CONTROL   0x20

Definition at line 80 of file wctype.h.

◆ _CRT_CTYPEDATA_DEFINED

#define _CRT_CTYPEDATA_DEFINED

Definition at line 26 of file wctype.h.

◆ _CRT_WCTYPEDATA_DEFINED

#define _CRT_WCTYPEDATA_DEFINED

Definition at line 51 of file wctype.h.

◆ _DIGIT

#define _DIGIT   0x4

Definition at line 76 of file wctype.h.

◆ _HEX

#define _HEX   0x80

Definition at line 82 of file wctype.h.

◆ _LEADBYTE

#define _LEADBYTE   0x8000

Definition at line 84 of file wctype.h.

◆ _LOWER

#define _LOWER   0x2

Definition at line 75 of file wctype.h.

◆ _pctype

#define _pctype   (*_imp___pctype)

Definition at line 43 of file wctype.h.

◆ _PUNCT

#define _PUNCT   0x10

Definition at line 79 of file wctype.h.

◆ _pwctype

#define _pwctype   (*_imp___pwctype)

Definition at line 67 of file wctype.h.

◆ _SPACE

#define _SPACE   0x8

Definition at line 77 of file wctype.h.

◆ _UPPER

#define _UPPER   0x1

Definition at line 74 of file wctype.h.

◆ _wctype

#define _wctype   (*_imp___wctype)

Definition at line 58 of file wctype.h.

◆ _WCTYPE_DEFINED

#define _WCTYPE_DEFINED

Definition at line 88 of file wctype.h.

◆ _WCTYPE_INLINE_DEFINED

#define _WCTYPE_INLINE_DEFINED

Definition at line 115 of file wctype.h.

◆ isleadbyte

#define isleadbyte (   c)    (__pctype_func()[(unsigned char)(c)] & _LEADBYTE)

Definition at line 129 of file wctype.h.

◆ iswalnum

#define iswalnum (   _c)    (iswctype(_c,_ALPHA|_DIGIT))

Definition at line 124 of file wctype.h.

◆ iswalpha

#define iswalpha (   _c)    (iswctype(_c,_ALPHA))

Definition at line 117 of file wctype.h.

◆ iswascii

#define iswascii (   _c)    ((unsigned)(_c) < 0x80)

Definition at line 128 of file wctype.h.

◆ iswcntrl

#define iswcntrl (   _c)    (iswctype(_c,_CONTROL))

Definition at line 127 of file wctype.h.

◆ iswdigit

#define iswdigit (   _c)    (iswctype(_c,_DIGIT))

Definition at line 120 of file wctype.h.

◆ iswgraph

#define iswgraph (   _c)    (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))

Definition at line 126 of file wctype.h.

◆ iswlower

#define iswlower (   _c)    (iswctype(_c,_LOWER))

Definition at line 119 of file wctype.h.

◆ iswprint

#define iswprint (   _c)    (iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT))

Definition at line 125 of file wctype.h.

◆ iswpunct

#define iswpunct (   _c)    (iswctype(_c,_PUNCT))

Definition at line 123 of file wctype.h.

◆ iswspace

#define iswspace (   _c)    (iswctype(_c,_SPACE))

Definition at line 122 of file wctype.h.

◆ iswupper

#define iswupper (   _c)    (iswctype(_c,_UPPER))

Definition at line 118 of file wctype.h.

◆ iswxdigit

#define iswxdigit (   _c)    (iswctype(_c,_HEX))

Definition at line 121 of file wctype.h.

◆ WEOF

#define WEOF   (wint_t)(0xFFFF)

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 22 of file wctype.h.

Typedef Documentation

◆ wctrans_t

typedef wchar_t wctrans_t

Definition at line 147 of file wctype.h.

Function Documentation

◆ __iswcsym()

_CRTIMP int __cdecl __iswcsym ( wint_t  )

◆ __iswcsymf()

_CRTIMP int __cdecl __iswcsymf ( wint_t  )

◆ is_wctype()

int __cdecl is_wctype ( wint_t  ,
wctype_t   
)

Definition at line 10 of file is_wctype.c.

11 {
12  return iswctype(wc, wctypeFlags);
13 }
int iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ isleadbyte()

int __cdecl isleadbyte ( int  )

Definition at line 7 of file islead.c.

8 {
9  return _isctype( c, _LEADBYTE );
10 
11 }
#define _LEADBYTE
Definition: ctype.h:75
const GLubyte * c
Definition: glext.h:8905
_Check_return_ _CRTIMP int __cdecl _isctype(_In_ int _C, _In_ int _Type)

◆ iswalnum()

int __cdecl iswalnum ( wint_t  )

Definition at line 647 of file ctype.c.

648 {
649  return iswctype(c, _ALPHA | _DIGIT);
650 }
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97
#define _DIGIT
Definition: ctype.h:67
#define _ALPHA
Definition: ctype.h:76

◆ iswalpha()

int __cdecl iswalpha ( wint_t  )

Definition at line 760 of file ctype.c.

761 {
762  return (iswctype (c, _ALPHA));
763 }
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97
#define _ALPHA
Definition: ctype.h:76

◆ iswascii()

int __cdecl iswascii ( wint_t  )

Definition at line 663 of file ctype.c.

664 {
665  return __isascii(c);
666 }
int __cdecl __isascii(int c)
Definition: ctype.c:655
const GLubyte * c
Definition: glext.h:8905

◆ iswblank()

_CRTIMP int __cdecl iswblank ( wint_t  _C)

Definition at line 4 of file iswblank.c.

5 {
6  return (iswctype(_C, _BLANK) || _C == '\t');
7 }
#define _BLANK
Definition: ctype.h:72
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ iswcntrl()

int __cdecl iswcntrl ( wint_t  )

Definition at line 768 of file ctype.c.

769 {
770  return iswctype(c, _CONTROL);
771 }
#define _CONTROL
Definition: ctype.h:71
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ iswctype()

int __cdecl iswctype ( wint_t  ,
wctype_t   
)

Definition at line 97 of file freeldr.c.

98 {
99  return _isctype((char)wc, wctypeFlags);
100 }
_Check_return_ _CRTIMP int __cdecl _isctype(_In_ int _C, _In_ int _Type)

◆ iswdigit()

int __cdecl iswdigit ( wint_t  )

Definition at line 776 of file ctype.c.

777 {
778  return (iswctype (c, _DIGIT));
779 }
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97
#define _DIGIT
Definition: ctype.h:67

◆ iswgraph()

int __cdecl iswgraph ( wint_t  )

Definition at line 784 of file ctype.c.

785 {
786  return iswctype(c,_PUNCT | _ALPHA | _DIGIT);
787 }
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97
#define _DIGIT
Definition: ctype.h:67
#define _ALPHA
Definition: ctype.h:76
#define _PUNCT
Definition: ctype.h:70

◆ iswlower()

int __cdecl iswlower ( wint_t  )

Definition at line 809 of file ctype.c.

810 {
811  return (iswctype (c, _LOWER));
812 }
const GLubyte * c
Definition: glext.h:8905
#define _LOWER
Definition: ctype.h:66
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ iswprint()

int __cdecl iswprint ( wint_t  )

Definition at line 792 of file ctype.c.

793 {
794  return iswctype((unsigned short)c,_BLANK | _PUNCT | _ALPHA | _DIGIT);
795 }
#define _BLANK
Definition: ctype.h:72
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97
#define _DIGIT
Definition: ctype.h:67
#define _ALPHA
Definition: ctype.h:76
#define _PUNCT
Definition: ctype.h:70

◆ iswpunct()

int __cdecl iswpunct ( wint_t  )

Definition at line 801 of file ctype.c.

802 {
803  return iswctype(c, _PUNCT);
804 }
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97
#define _PUNCT
Definition: ctype.h:70

◆ iswspace()

int __cdecl iswspace ( wint_t  )

Definition at line 826 of file ctype.c.

827 {
828  return (iswctype (c, _SPACE));
829 }
#define _SPACE
Definition: ctype.h:68
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ iswupper()

int __cdecl iswupper ( wint_t  )

Definition at line 817 of file ctype.c.

818 {
819  return iswctype(c, _UPPER);
820 }
#define _UPPER
Definition: ctype.h:65
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ iswxdigit()

int __cdecl iswxdigit ( wint_t  )

Definition at line 834 of file ctype.c.

835 {
836  return (iswctype (c, _HEX));
837 }
#define _HEX
Definition: ctype.h:73
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ towctrans()

wint_t __cdecl towctrans ( wint_t  ,
wctrans_t   
)

◆ towlower()

wint_t __cdecl towlower ( wint_t  )

Definition at line 891 of file ctype.c.

892 {
893  if (iswctype (c, _UPPER))
894  return (c - upalpha);
895  return(c);
896 }
#define _UPPER
Definition: ctype.h:65
#define upalpha
Definition: ctype.c:33
const GLubyte * c
Definition: glext.h:8905
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ towupper()

wint_t __cdecl towupper ( wint_t  )

Definition at line 901 of file ctype.c.

902 {
903  if (iswctype (c, _LOWER))
904  return (c + upalpha);
905  return(c);
906 }
#define upalpha
Definition: ctype.c:33
const GLubyte * c
Definition: glext.h:8905
#define _LOWER
Definition: ctype.h:66
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:97

◆ wctrans()

wctrans_t __cdecl wctrans ( const char )

◆ wctype()

Variable Documentation

◆ _imp___pctype

unsigned short** _imp___pctype

◆ _imp___pwctype

unsigned short** _imp___pwctype

◆ _imp___wctype

unsigned short** _imp___wctype