X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Funicode.h;h=c9d6a0c1cde12477e1e88b0f0601272d179d1122;hb=da418321735b159f0ff39366d68203c772f152d4;hp=e29bc3662d64b79e5f6552d13e53c258340a0b47;hpb=a4f8b029b86d2ca1612a9c2e2795ccea27b15276;p=libucw.git diff --git a/ucw/unicode.h b/ucw/unicode.h index e29bc366..c9d6a0c1 100644 --- a/ucw/unicode.h +++ b/ucw/unicode.h @@ -357,11 +357,11 @@ static inline uns unicode_sanitize_char(uns 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(). **/ -uns utf8_strlen(const byte *str); +size_t utf8_strlen(const byte *str); /** * Same as @utf8_strlen(), but returns at most @n characters. **/ -uns utf8_strnlen(const byte *str, uns n); +size_t utf8_strnlen(const byte *str, size_t n); #endif