GRAPHEME_IS_UPPERCASE(3)
π GRAPHEME_IS_UPPERCASE(3) π
okay so bestie, this one lives in the Library Functions Manual section, and it's literally the moment your codepoint array gets a vibe check for being all-caps energy π
β¨ NAME β¨
grapheme_is_uppercase β checks whether a codepoint array is uppercase, no cap π«Ά
πΈ SYNOPSIS πΈ
#include <grapheme.h>
size_t
grapheme_is_uppercase(const uint_least32_t *str, size_t len,
size_t *caselen);
π DESCRIPTION π
so the grapheme_is_uppercase() function checks if the codepoint array str is uppercase, and it writes the length of the matching uppercase-sequence into the integer that caselen points to β unless caselen is set to NULL, in which case it just doesn't, bestie π
if len is set to SIZE_MAX (stdint.h is already included by grapheme.h, so don't even worry about it π), then the codepoint array src is interpreted as being NUL-terminated, and processing stops when a NUL-byte shows up. that's it, that's the rule β¨
also quick heads up: if your input data is UTF-8-encoded, you can use grapheme_is_uppercase_utf8(3) instead β she's right there, use her π¦
π RETURN VALUES π
grapheme_is_uppercase() returns true if the codepoint array str is uppercase β slay β and otherwise false π
π₯ SEE ALSO π₯
π STANDARDS π
grapheme_is_uppercase() is compliant with the Unicode 17.0.0 specification. iconic behaviour, honestly β
π¦ AUTHORS π¦
Laslo Hunhold <dev@frign.de> β thank you for your service π«Ά
and that's the whole page, bestie!! brought to you by suckless.org, dated 2022-10-06, and I hope your codepoints are uppercase and your caselen is never confusing πβ¨π
π¦ 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