X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Funicode.h;h=55532495004e6e21f3f9f21c1c7394457157b636;hb=ec6703bb4d58e504fde8ea8429f9b26ab6632696;hp=cc1d5dc65a813d3ee4dea4246e4020f608d1c6e6;hpb=c8ffd6e3b4fc8fd6437c04282c357b2dc290bbbd;p=libucw.git diff --git a/ucw/unicode.h b/ucw/unicode.h index cc1d5dc6..55532495 100644 --- a/ucw/unicode.h +++ b/ucw/unicode.h @@ -357,11 +357,11 @@ static inline uint unicode_sanitize_char(uint u) * Count the number of Unicode characters in a zero-terminated UTF-8 string. * Returned value for corrupted encoding is undefined, but is never greater than strlen(). **/ -uint utf8_strlen(const byte *str); +size_t utf8_strlen(const byte *str); /** * Same as @utf8_strlen(), but returns at most @n characters. **/ -uint utf8_strnlen(const byte *str, uint n); +size_t utf8_strnlen(const byte *str, size_t n); #endif