]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/unicode.h
Redblack: Added search_up
[libucw.git] / ucw / unicode.h
index cc1d5dc65a813d3ee4dea4246e4020f608d1c6e6..55532495004e6e21f3f9f21c1c7394457157b636 100644 (file)
@@ -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