FcUtf8Len(3)
πΈ NAME πΈ
okay bestie, welcome to FcUtf8Len(3) β the page that literally counts UTF-8 encoded chars, no cap π
.
π SYNOPSIS π
#include <fontconfig/fontconfig.h>
FcBool FcUtf8Len (FcChar8 *src, int len, int *nchar, int *wchar);
π¦ DESCRIPTION π¦
So hereβs the vibe: FcUtf8Len counts how many Unicode chars are hanging out in len bytes of src, and it places that count into nchar β¨.
Then wchar gets 1, 2, or 4 β depending on how many bytes are needed to hold the largest Unicode char it counted π.
And the return value? It tells you whether src is a well-formed UTF8 string, fr fr π.
Fontconfig 2.17.0 Β· 27 June 2025 β thatβs the source/version and date, bestie, and this page is officially signed off π«Άπ periodt.
π¦ where this page comes from
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms