blob: 8edc084ced6b5cfeab9a7bec32c18c43653f025f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "utf8.h"
#include "internal/common.h"
const char8_t *
u8next(rune *ch, const char8_t **s, size_t *n)
{
int m;
if (*n == 0)
return nullptr;
*n -= m = u8tor_uc(ch, *s);
return *s += m;
}
|