ReactOS 0.4.16-dev-2104-gb84fa49
wctype.cpp File Reference
#include <corecrt.h>
#include <string.h>
#include <wctype.h>
Include dependency graph for wctype.cpp:

Go to the source code of this file.

Classes

struct  wctab
 

Functions

wctype_t __cdecl wctype (char const *const name)
 

Variables

static struct wctab tab []
 

Function Documentation

◆ wctype()

wctype_t __cdecl wctype ( char const *const  name)

Definition at line 41 of file wctype.cpp.

42{
43 for (unsigned n = 0; tab[n].s != 0; ++n)
44 {
45 if (strcmp(tab[n].s, name) == 0)
46 return tab[n].value;
47 }
48
49 return 0;
50}
_ACRTIMP int __cdecl strcmp(const char *, const char *)
Definition: string.c:3319
GLdouble s
Definition: gl.h:2039
GLdouble n
Definition: glext.h:7729
Definition: name.c:39
static struct wctab tab[]

Referenced by _Messages::do_get(), _Catalog_locale_map::insert(), prim(), and rangematch().

Variable Documentation

◆ tab

struct wctab tab[]
static
Initial value:
=
{
{ "alnum", _ALPHA | _DIGIT },
{ "alpha", _ALPHA },
{ "cntrl", _CONTROL },
{ "digit", _DIGIT },
{ "graph", _PUNCT | _ALPHA | _DIGIT },
{ "lower", _LOWER },
{ "print", _BLANK | _PUNCT | _ALPHA | _DIGIT },
{ "punct", _PUNCT },
{ "blank", _BLANK },
{ "space", _SPACE },
{ "upper", _UPPER },
{ "xdigit", _HEX },
{ nullptr, 0 }
}
#define _BLANK
#define _PUNCT
#define _CONTROL
#define _LOWER
#define _SPACE
#define _ALPHA
#define _UPPER
#define _HEX
#define _DIGIT

Referenced by wctype().