2 * UCW Library -- UTF-8 Functions
4 * (c) 1997--2004 Martin Mares <mj@ucw.cz>
5 * (c) 2003 Robert Spalek <robert@ucw.cz>
7 * This software may be freely distributed and used according to the terms
8 * of the GNU Lesser General Public License.
12 #include "lib/unicode.h"
15 utf8_strlen(const byte *str)
27 utf8_strnlen(const byte *str, uns n)
30 const byte *end = str + n;
42 int main(int argc, char **argv)
45 if (argc > 1 && !strncmp(argv[1], "get", 3))
47 int f32 = !strcmp(argv[1], "get32");
50 while (scanf("%x", &u) == 1)
66 else if (argc > 1 && !strncmp(argv[1], "put", 3))
69 int f32 = !strcmp(argv[1], "put32");
70 while (scanf("%x", &u) == 1)