ISALPHARUNE(3)
πΈ 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 forc.int islowerrune(Rune c)β the lower-case type test forc.int isspacerune(Rune c)β the space type test forc.int istitlerune(Rune c)β the title-case type test forc.int isupperrune(Rune c)β the upper-case type test forc.Rune tolowerrune(Rune c)β convertscto lower case.Rune totitlerune(Rune c)β convertscto title case.Rune toupperrune(Rune c)β convertscto 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 π
isalpha(3)- The Unicode Standard.
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 πβ¨
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms