GRAPHEME_IS_UPPERCASE(3)

πŸ“¦ version 3.0.0, in nixos 26.05, nixpkgs unstable

πŸ’– 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