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

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