CTYPE_L(3)
π
character classification functions, but make it locale β ctype_l(3) β¨
okay so this is the Library Functions Manual page for ctype_l(3), and it's giving "all your fave character checks but with a locale glow-up." no cap, bestie, we're keeping every single function and every tiny detail. π«Ά
β¨ NAME β¨
digittoint_l, isalnum_l, isalpha_l, isblank_l, iscntrl_l, isdigit_l, isgraph_l, ishexnumber_l, isideogram_l, islower_l, isnumber_l, isphonogram_l, isprint_l, ispunct_l, isrune_l, isspace_l, isspecial_l, isupper_l, isxdigit_l, tolower_l, toupper_l β character classification functions π
π LIBRARY π
Standard C Library (libc, -lc) β she lives in the standard C library, periodt. πΈ
π¦ SYNOPSIS π¦
#include <ctype.h>
int
digittoint_l(int c, locale_t loc);
int
isalnum_l(int c, locale_t loc);
int
isalpha_l(int c, locale_t loc);
int
iscntrl_l(int c, locale_t loc);
int
isdigit_l(int c, locale_t loc);
int
isgraph_l(int c, locale_t loc);
int
ishexnumber_l(int c, locale_t loc);
int
isideogram_l(int c, locale_t loc);
int
islower_l(int c, locale_t loc);
int
isnumber_l(int c, locale_t loc);
int
isphonogram_l(int c, locale_t loc);
int
isspecial_l(int c, locale_t loc);
int
isprint_l(int c, locale_t loc);
int
ispunct_l(int c, locale_t loc);
int
isrune_l(int c, locale_t loc);
int
isspace_l(int c, locale_t loc);
int
isupper_l(int c, locale_t loc);
int
isxdigit_l(int c, locale_t loc);
int
tolower_l(int c, locale_t loc);
int
toupper_l(int c, locale_t loc);
tiny heads-up, bestie: isblank_l is in NAME and SEE ALSO, but it doesn't show up with a prototype in this SYNOPSIS list. I'm not inventing one β I'm just telling you what the page says. π
π DESCRIPTION π
The above functions perform character tests and conversions on the integer c 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. literally the whole vibe: same behavior, but you're handing it the locale instead of letting it pick the global or per-thread one. periodt. π
Also, the page says <ctype.h>, or as true functions in the C library. See the specific manual pages for more information. π
π SEE ALSO π
digittoint_l(3), isalnum_l(3), isalpha_l(3), isblank_l(3), iscntrl_l(3), isdigit_l(3), isgraph_l(3), isideogram_l(3), islower_l(3), isphonogram_l(3), isprint_l(3), ispunct_l(3), isrune_l(3), isspace_l(3), isspecial_l(3), isupper_l(3), isxdigit_l(3), tolower_l(3), toupper_l(3), wctype_l(3), xlocale_l(3) π
β STANDARDS β
These functions conform to IEEE Std 1003.1-2008 (βPOSIX.1β), except for digittoint_l(), ishexnumber_l(), isideogram_l(), isnumber_l(), isphonogram_l(), isrune_l() and isspecial_l() which are FreeBSD extensions. so iconic of them, honestly. π
xoxo, bestie β source/version: Debian π, date: December 19, 2022 π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2011 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms