GRAPHEME_TO_LOWERCASE(3)
πΈ NAME πΈ
okay so bestie, this is the manual page for grapheme_to_lowercase(3) from the Library Functions Manual, and itβs literally here to convert a codepoint array to lowercase. iconic behavior. π«Ά
β¨ SYNOPSIS β¨
#include <grapheme.h>
size_t
grapheme_to_lowercase(const uint_least32_t *src, size_t srclen,
uint_least32_t *dest, size_t destlen);
π DESCRIPTION π
The grapheme_to_lowercase() function converts the codepoint array str to lowercase and writes the result to dest up to destlen, unless dest is set to NULL. yes bestie, NULL means no writing, no cap. π
If srclen is set to SIZE_MAX (stdint.h is already included by grapheme.h), the codepoint array src is interpreted to be NUL-terminated, and processing stops when a NUL-byte is encountered. periodt. π
For UTF-8-encoded input data, grapheme_to_lowercase_utf8(3) can be used instead. slay, thereβs a whole UTF-8 bestie for that. π¦
π₯ RETURN VALUES π₯
The grapheme_to_lowercase() function returns the number of codepoints in the array resulting from converting src to lowercase, even if destlen is not large enough or dest is NULL. so yes, it still tells you the count β the math is mathing. π
π¦ SEE ALSO π¦
π STANDARDS π
grapheme_to_lowercase() is compliant with the Unicode 17.0.0 specification. we love a standards queen. π
π AUTHORS π
Laslo Hunhold <dev@frign.de>
mwah π this cutie came from suckless.org and is dated 2022-10-06. bye bestie! π
π¦ where this page comes from
- nixos 26.05: libgrapheme 3.0.0
- nixpkgs unstable: libgrapheme 3.0.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms