GRAPHEME_IS_LOWERCASE_UTF8(3)
π GRAPHEME_IS_LOWERCASE_UTF8(3) π
okay so bestie, we're in the grapheme girlies' section 3 today β yes, that's the Library Functions Manual, and this page is all about grapheme_is_lowercase_utf8 from grapheme.h. buckle up, it's literally so simple it's iconic π
β¨ NAME β¨
grapheme_is_lowercase_utf8 β checks if a UTF-8-encoded string is lowercase π¦
πΈ SYNOPSIS πΈ
#include <grapheme.h>
size_t
grapheme_is_lowercase_utf8(const char *str, size_t len,
size_t *caselen);
π DESCRIPTION π
so the grapheme_is_lowercase_utf8() function does exactly what it says on the tin, no cap: it checks whether the UTF-8-encoded string str is lowercase π and then it writes the length of the matching lowercase-sequence into the integer pointed to by caselen β unless caselen is set to NULL, in which case she simply doesn't, and that's fine π«Ά
now, if len is set to SIZE_MAX (stdint.h is already included by grapheme.h, so don't even worry about it), then the UTF-8-encoded string src is interpreted to be NUL-terminated, and processing stops when a NUL-byte is encountered β
and for non-UTF-8 input data? you can just use grapheme_is_lowercase(3) instead, easy peasy π§
π₯ RETURN VALUES π₯
grapheme_is_lowercase_utf8() returns true if the UTF-8-encoded string str is lowercase β and otherwise, bestie, she returns false π
π SEE ALSO π
π STANDARDS π
grapheme_is_lowercase_utf8() is compliant with the Unicode 17.0.0 specification β¨ periodt.
π AUTHORS π
Laslo Hunhold <dev@frign.de> β king behaviour honestly π
okay that's the whole page, love u, go validate some lowercase strings π
suckless.org πΈ 2022-10-06 πΈ GRAPHEME_IS_LOWERCASE_UTF8(3) β mwah, 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