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

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