This commit is contained in:
Piotr Kocia 2025-03-31 11:02:24 +02:00
parent 23c95f1dea
commit 26266dff3b
4 changed files with 341 additions and 62 deletions

View file

@ -87,6 +87,10 @@ static inline bool hasc32upper(const char32_t *s) {
return false;
}
static inline bool isc32punct(char32_t c32) {
return iswpunct((wint_t)c32);
}
static inline int c32width(char32_t c) {
#if defined(FOOT_GRAPHEME_CLUSTERING)
return utf8proc_charwidth((utf8proc_int32_t)c);