]> 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 3a758589455c16918d8ed5e475fdd0a0862f43d3..e4a33af8495f216bcbade228c55ce271a8f0f23c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- UTF-8 Functions
+ *     UCW Library -- UTF-8 Functions
  *
  *     (c) 1997--2004 Martin Mares <mj@ucw.cz>
  *     (c) 2003 Robert Spalek <robert@ucw.cz>
@@ -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);