]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/unicode.c
Merge branch 'master' into dev-sizet
[libucw.git] / ucw / unicode.c
index fcff81cfc2ea41155d6afb2d08d18132f125e0a1..8615f122b22fb65ba9aa30ca9bf3592791a3155a 100644 (file)
 #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);
@@ -23,10 +23,10 @@ utf8_strlen(const byte *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)
     {