aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode/string/u8gcnt.c
blob: bea30fa6a00579b47cbb6d5bfab48924aea4ca88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "unicode/string.h"

size_t
u8gcnt(u8view_t sv)
{
	size_t m = 0;
	while (u8gnext(nullptr, &sv))
		m++;
	return m;
}