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

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