#include <ucw/lib.h>
#include <ucw/unicode.h>
-uint
+size_t
utf8_strlen(const byte *str)
{
- uint len = 0;
+ size_t len = 0;
while (*str)
{
UTF8_SKIP(str);
return len;
}
-uint
-utf8_strnlen(const byte *str, uint n)
+size_t
+utf8_strnlen(const byte *str, size_t n)
{
- uint len = 0;
+ size_t len = 0;
const byte *end = str + n;
while (str < end)
{