ISALPHARUNE(3)

πŸ“¦ version 0_git20260208, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

🌸 ISALPHARUNE(3) β€” Unicode character classes and cases πŸŽ€

Okay bestie, this is ISALPHARUNE(3) from the Library Functions Manual, and it's all about the Unicode character-class and case routines. The names are literally self-explanatory πŸ’…βœ¨


✨ NAME ✨

isalpharune, islowerrune, isspacerune, istitlerune, isupperrune, tolowerrune, totitlerune, toupperrune β€” Unicode character classes and cases.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <u.h>
#include <libc.h>

int isalpharune(Rune c)

int islowerrune(Rune c)

int isspacerune(Rune c)

int istitlerune(Rune c)

int isupperrune(Rune c)

Rune tolowerrune(Rune c)

Rune totitlerune(Rune c)

Rune toupperrune(Rune c)

πŸ’– DESCRIPTION πŸ’–

These routines examine and operate on Unicode characters, specifically a subset of their properties as defined in the Unicode standard. Unicode defines some characters as alphabetic and specifies three cases: upper, lower, and title.

Think of them as the Unicode glow-up of isalpha(3) for ASCII: these routines test types and modify cases for Unicode characters πŸ¦‹

Here's the quick tour, because the names are doing exactly what they say:

  • int isalpharune(Rune c) β€” the alphabetic type test for c.
  • int islowerrune(Rune c) β€” the lower-case type test for c.
  • int isspacerune(Rune c) β€” the space type test for c.
  • int istitlerune(Rune c) β€” the title-case type test for c.
  • int isupperrune(Rune c) β€” the upper-case type test for c.
  • Rune tolowerrune(Rune c) β€” converts c to lower case.
  • Rune totitlerune(Rune c) β€” converts c to title case.
  • Rune toupperrune(Rune c) β€” converts c to upper case.
Important vibe check, bestie: the case-conversion routines return the character unchanged if it has no case. No case? No changes. Periodt πŸ’…

πŸ“ SOURCE πŸ“

  • /src/lib9/utf/runetype.c β€” where this whole thing lives 🫢

πŸ‘€ SEE ALSO πŸ‘€


That's the page, bestie 🫢 β€” ISALPHARUNE(3) from the Library Functions Manual. Source check: /src/lib9/utf/runetype.c. Footer check: it literally just says ISALPHARUNE(3) again, with no date listed, so I'm not inventing one πŸ’€βœ¨