ISWALNUM_L(3)
β¨ ISWALNUM_L(3): wide character classification utilities β¨
okay so this is the ISWALNUM_L(3) page from the library functions manual, and it is basically the group chat for all the locale-aware wide-character classification girlies. There are a LOT of them. No cap. π
π NAME π
iswalnum_l, iswalpha_l, iswcntrl_l, iswctype_l, iswdigit_l, iswgraph_l, iswlower_l, iswprint_l, iswpunct_l, iswspace_l, iswupper_l, iswxdigit_l, towlower_l, towupper_l, wctype_l, iswblank_l, iswhexnumber_l, iswideogram_l, iswnumber_l, iswphonogram_l, iswrune_l, iswspecial_l, nextwctype_l, towctrans_l, wctrans_l β wide character classification utilities.
π§ LIBRARY π§
Standard C Library (libc, -lc). literally the standard one, bestie.
πΈ SYNOPSIS πΈ
#include <wctype.h>
int
iswalnum_l(wint_t wc, locale_t loc);
int
iswalpha_l(wint_t wc, locale_t loc);
int
iswcntrl_l(wint_t wc, locale_t loc);
int
iswctype_l(wint_t wc, locale_t loc);
int
iswdigit_l(wint_t wc, locale_t loc);
int
iswgraph_l(wint_t wc, locale_t loc);
int
iswlower_l(wint_t wc, locale_t loc);
int
iswprint_l(wint_t wc, locale_t loc);
int
iswpunct_l(wint_t wc, locale_t loc);
int
iswspace_l(wint_t wc, locale_t loc);
int
iswupper_l(wint_t wc, locale_t loc);
int
iswxdigit_l(wint_t wc, locale_t loc);
wint_t
towlower_l(wint_t wc, locale_t loc);
wint_t
towupper_l(wint_t wc, locale_t loc);
wctype_t
wctype_l(wint_t wc, locale_t loc);
int
iswblank_l(wint_t wc, locale_t loc);
int
iswhexnumber_l(wint_t wc, locale_t loc);
int
iswideogram_l(wint_t wc, locale_t loc);
int
iswnumber_l(wint_t wc, locale_t loc);
int
iswphonogram_l(wint_t wc, locale_t loc);
int
iswrune_l(wint_t wc, locale_t loc);
int
iswspecial_l(wint_t wc, locale_t loc);
wint_t
nextwctype_l(wint_t wc, locale_t loc);
wint_t
towctrans_l(wint_t wc, wctrans_t, locale_t loc);
wctrans_t
wctrans_l(const char *, locale_t loc);
π¦ DESCRIPTION π¦
The above functions are character classification utility functions, for use with wide characters (wchar_t or wint_t) in the locale loc. They behave in the same way as the versions without the _l suffix, but use the specified locale rather than the global or per-thread locale. π«Ά
So yeah: same function energy as the non-_l versions, but you're explicitly handing it the locale instead of letting it vibe with the global or per-thread one.
These functions may be implemented as inline functions in <wctype.h> and as functions in the C library. See the specific manual pages for more information. π
π RETURN VALUES π
These functions return the same things as their non-locale versions. If the locale is invalid, their behaviors are undefined.
π¨ bestie please read this part: if the locale is invalid, their behaviors are undefined. that is the "do not expect a cute predictable result" zone. undefined is undefined, periodt.
π SEE ALSO π
iswalnum(3), iswalpha(3), iswblank(3), iswcntrl(3), iswctype(3), iswdigit(3), iswgraph(3), iswhexnumber(3), iswideogram(3), iswlower(3), iswnumber(3), iswphonogram(3), iswprint(3), iswpunct(3), iswrune(3), iswspace(3), iswspecial(3), iswupper(3), iswxdigit(3), nextwctype(3), towctrans(3), towlower(3), towupper(3), wctrans(3), wctype(3)
π STANDARDS π
These functions conform to IEEE Std 1003.1-2008 (βPOSIX.1β), except for iswascii_l(), iswhexnumber_l(), iswideogram_l(), iswphonogram_l(), iswrune_l(), iswspecial_l() and nextwctype_l() which are FreeBSD extensions. iykyk π¦
mwah π this is the ISWALNUM_L(3) page from Debian, dated July 25, 2012. bye bestie, go classify some wide characters responsibly π«Άπ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2012 Isabell Long <issyl0@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms