Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
iswctype.c
Go to the documentation of this file.
1
#include <
string.h
>
2
#include <
wctype.h
>
3
4
int
iswctype
(
wint_t
wc,
wctype_t
type)
5
{
6
switch
(type)
7
{
8
case
WCTYPE_ALNUM
:
9
return
iswalnum
(wc);
10
case
WCTYPE_ALPHA
:
11
return
iswalpha
(wc);
12
case
WCTYPE_BLANK
:
13
return
iswblank
(wc);
14
case
WCTYPE_CNTRL
:
15
return
iswcntrl
(wc);
16
case
WCTYPE_DIGIT
:
17
return
iswdigit
(wc);
18
case
WCTYPE_GRAPH
:
19
return
iswgraph
(wc);
20
case
WCTYPE_LOWER
:
21
return
iswlower
(wc);
22
case
WCTYPE_PRINT
:
23
return
iswprint
(wc);
24
case
WCTYPE_PUNCT
:
25
return
iswpunct
(wc);
26
case
WCTYPE_SPACE
:
27
return
iswspace
(wc);
28
case
WCTYPE_UPPER
:
29
return
iswupper
(wc);
30
case
WCTYPE_XDIGIT
:
31
return
iswxdigit
(wc);
32
}
33
return
0;
34
}
iswpunct
int iswpunct(wint_t)
Definition:
iswpunct.c:7
wint_t
unsigned wint_t
Definition:
wctype.h:11
iswdigit
int iswdigit(wint_t)
Definition:
iswdigit.c:3
WCTYPE_SPACE
#define WCTYPE_SPACE
Definition:
wctype.h:26
WCTYPE_DIGIT
#define WCTYPE_DIGIT
Definition:
wctype.h:21
string.h
iswprint
int iswprint(wint_t)
Definition:
iswprint.c:10
WCTYPE_ALPHA
#define WCTYPE_ALPHA
Definition:
wctype.h:18
WCTYPE_LOWER
#define WCTYPE_LOWER
Definition:
wctype.h:23
WCTYPE_CNTRL
#define WCTYPE_CNTRL
Definition:
wctype.h:20
iswxdigit
int iswxdigit(wint_t)
Definition:
iswxdigit.c:3
iswgraph
int iswgraph(wint_t)
Definition:
iswgraph.c:3
wctype.h
WCTYPE_PUNCT
#define WCTYPE_PUNCT
Definition:
wctype.h:25
iswupper
int iswupper(wint_t)
Definition:
iswupper.c:3
WCTYPE_UPPER
#define WCTYPE_UPPER
Definition:
wctype.h:27
iswalnum
int iswalnum(wint_t)
Definition:
iswalnum.c:3
WCTYPE_XDIGIT
#define WCTYPE_XDIGIT
Definition:
wctype.h:28
WCTYPE_PRINT
#define WCTYPE_PRINT
Definition:
wctype.h:24
iswctype
int iswctype(wint_t wc, wctype_t type)
Definition:
iswctype.c:4
WCTYPE_ALNUM
#define WCTYPE_ALNUM
Definition:
wctype.h:17
iswcntrl
int iswcntrl(wint_t)
Definition:
iswcntrl.c:3
WCTYPE_GRAPH
#define WCTYPE_GRAPH
Definition:
wctype.h:22
iswblank
int iswblank(wint_t)
Definition:
iswblank.c:4
WCTYPE_BLANK
#define WCTYPE_BLANK
Definition:
wctype.h:19
iswlower
int iswlower(wint_t)
Definition:
iswlower.c:3
iswspace
int iswspace(wint_t)
Definition:
iswspace.c:8
wctype_t
unsigned long wctype_t
Definition:
wctype.h:12
iswalpha
int iswalpha(wint_t)
Definition:
iswalpha.c:7
src
wchar
iswctype.c
Generated by
1.8.15