aboutsummaryrefslogtreecommitdiff
path: root/lib/mbstring/u8len.c
blob: 23c55c5df610f718a02dad6c6e38d80fdbb476d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "mbstring.h"

size_t
u8len(struct u8view sv)
{
	size_t m = 0;
	while (u8next(nullptr, &sv))
		m++;
	return m;
}