GRAPHEME_TO_UPPERCASE(3)
π grapheme_to_uppercase(3) β Library Functions Manual, but make it main-character π
Okay bestie, welcome to the uppercase glow-up corner of the manual. This is from the Library Functions Manual, and it's giving codepoint transformation realness. π
β¨ NAME β¨
grapheme_to_uppercase β convert codepoint array to uppercase, literally no cap
π«Ά SYNOPSIS π«Ά
#include <grapheme.h>
size_t
grapheme_to_uppercase(const uint_least32_t *src, size_t srclen,
uint_least32_t *dest, size_t destlen);
π DESCRIPTION π
The grapheme_to_uppercase() function converts the codepoint array str to uppercase and writes the result to dest up to destlen, unless dest is set to NULL. Yes, str is right there in the description β we keep the lore exactly as it is. π¦
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. That's the size-limit slay right there. β¨
For UTF-8-encoded input data grapheme_to_uppercase_utf8(3) can be used instead. iykyk, different function for a different encoding vibe. π
π RETURN VALUES π
The grapheme_to_uppercase() function returns the number of codepoints in the array resulting from converting src to uppercase, even if destlen is not large enough or dest is NULL. It still tells you the count, periodt. π
π SEE ALSO π
β STANDARDS β
grapheme_to_uppercase() is compliant with the Unicode 17.0.0 specification. Certified Unicode 17.0.0 compliant, no cap. β
π AUTHORS π
- Laslo Hunhold
<dev@frign.de>β the icon behind this one π
Made with π by <strong>suckless.org</strong> Β· <strong>2022-10-06</strong> Β· <strong>GRAPHEME_TO_UPPERCASE(3)</strong> β k bye bestie, go uppercase something cute π¦β¨
π¦ 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