mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
wip: grapheme shaping
This commit is contained in:
parent
c1cde66f70
commit
b9ef703eb1
16 changed files with 340 additions and 178 deletions
8
util.h
8
util.h
|
|
@ -35,3 +35,11 @@ sdbm_hash(const char *s)
|
|||
|
||||
return hash;
|
||||
}
|
||||
|
||||
#include <wchar.h>
|
||||
static inline int
|
||||
my_wcswidth(const wchar_t *s, size_t n)
|
||||
{
|
||||
int ret = wcswidth(s, n);
|
||||
return max(0, ret);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue