The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
wctype.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file wctype.h
5 * @brief the classes of wide characters (Unicode code points).
6 *
7 * the ASCII characters are as in <ctype.h>. above ASCII, ginnOS knows the
8 * letters (and their case) of Latin-1, Latin Extended-A and B, Greek and
9 * Cyrillic, and the letters of the large scripts (CJK, kana, Hangul)
10 * without case; the other characters from U+00A0 are printable
11 * punctuation. this is enough for regular expressions and terminals.
12 */
13
14#include <wchar.h>
15
16typedef int wctype_t; // a class: 0 is none
17typedef int wctrans_t; // 1 tolower, 2 toupper, 0 none
18
33
34/** a class by name ("alpha", "digit", ...), or 0 */
35wctype_t wctype(const char *name);
36int iswctype(wint_t wc, wctype_t type);
37/** a mapping by name ("tolower", "toupper"), or 0 */
38wctrans_t wctrans(const char *name);
wide characters.
unsigned int wint_t
Definition wchar.h:12
int iswgraph(wint_t wc)
int iswcntrl(wint_t wc)
int iswprint(wint_t wc)
int iswxdigit(wint_t wc)
int wctrans_t
Definition wctype.h:17
int iswalpha(wint_t wc)
wint_t towctrans(wint_t wc, wctrans_t trans)
int iswctype(wint_t wc, wctype_t type)
int iswlower(wint_t wc)
int iswblank(wint_t wc)
int iswdigit(wint_t wc)
wctrans_t wctrans(const char *name)
a mapping by name ("tolower", "toupper"), or 0
wint_t towupper(wint_t wc)
wint_t towlower(wint_t wc)
int wctype_t
Definition wctype.h:16
int iswpunct(wint_t wc)
int iswalnum(wint_t wc)
wctype_t wctype(const char *name)
a class by name ("alpha", "digit", ...), or 0
int iswupper(wint_t wc)
int iswspace(wint_t wc)