Module libc/wctype

libc/wctype
Stability: unstable — a raw C binding, not a Yo design, and currently unused: nothing in the tree imports it. It has no Yo counterpart on purpose. Yo text is UTF-8 and its code-point type is `rune` (32-bit, Go's rune), while C's `wchar_t` is 16 bits on Windows and locale-defined everywhere; classification per `wchar_t` therefore cannot answer a question about a Yo `rune`. Use `std/string/rune.yo`. This file exists only so a transcribed C prototype that mentions these names resolves. — stable modules only change additively; this one may still change.

C11 <wctype.h> — wide character classification and conversion functions.

Stability

unstable — a raw C binding, not a Yo design, and currently unused: nothing in the tree imports it. It has no Yo counterpart on purpose. Yo text is UTF-8 and its code-point type is rune (32-bit, Go's rune), while C's wchar_t is 16 bits on Windows and locale-defined everywhere; classification per wchar_t therefore cannot answer a question about a Yo rune. Use std/string/rune.yo. This file exists only so a transcribed C prototype that mentions these names resolves.

Functions

iswalnum function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswalpha function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswblank function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswcntrl function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswdigit function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswgraph function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswlower function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswprint function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswpunct function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswspace function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswupper function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

iswxdigit function
fn(wc : wint_t) -> int

Parameters

NameTypeNotes
wcwint_t

Returns: int

towlower function
fn(wc : wint_t) -> wint_t

Parameters

NameTypeNotes
wcwint_t

Returns: wint_t

towupper function
fn(wc : wint_t) -> wint_t

Parameters

NameTypeNotes
wcwint_t

Returns: wint_t