[FIX] Ignore unavailable statuses

They aren't that useful, especially in MUCs.
This commit is contained in:
lda 2025-01-25 12:20:47 +00:00
commit 389870c5d3
9 changed files with 108 additions and 9 deletions

View file

@ -192,6 +192,16 @@ UnistrGetch(Unistr *unistr, size_t i)
return i < unistr->length ? unistr->codepoints[i] : 0;
}
bool
UnistrIsASCII(uint32_t u)
{
if (u == 0)
{
return NULL;
}
return u < 0x7F;
}
bool
UnistrIsBMP(uint32_t u)
{
if (u == 0)