CTYPE_L(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… 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