]> mj.ucw.cz Git - libucw.git/blobdiff - lib/unicode-utf8.c
Cleaned up tracing levels. Array sorter now has its own control knob.
[libucw.git] / lib / unicode-utf8.c
index 5f7b8186e55c62d19f88bb2179599ae497fa9e98..e4a33af8495f216bcbade228c55ce271a8f0f23c 100644 (file)
@@ -12,7 +12,7 @@
 #include "lib/unicode.h"
 
 uns
-utf8_strlen(byte *str)
+utf8_strlen(const byte *str)
 {
   uns len = 0;
   while (*str)
@@ -24,10 +24,10 @@ utf8_strlen(byte *str)
 }
 
 uns
-utf8_strnlen(byte *str, uns n)
+utf8_strnlen(const byte *str, uns n)
 {
   uns len = 0;
-  byte *end = str + n;
+  const byte *end = str + n;
   while (str < end)
     {
       UTF8_SKIP(str);