]> mj.ucw.cz Git - libucw.git/commitdiff
This was testing functions which didn't exist :-)
authorMartin Mares <mj@ucw.cz>
Sat, 11 Oct 2003 08:48:07 +0000 (08:48 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 11 Oct 2003 08:48:07 +0000 (08:48 +0000)
charset/test.c [deleted file]

diff --git a/charset/test.c b/charset/test.c
deleted file mode 100644 (file)
index 8b8e8d8..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#include "lib/lib.h"
-#include "charset/unicode.h"
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-int main(void)
-{
-  byte buf[256];
-  byte *c;
-  word u[256], *w;
-
-  while (fgets(buf, sizeof(buf), stdin))
-    {
-      if (c = strchr(buf, '\n'))
-       *c = 0;
-      utf8_to_ucs2(u, buf);
-      ucs2_to_utf8(buf, u);
-      puts(buf);
-      c = buf;
-      for(w=u; *w; w++)
-       *c++ = Usig(*w);
-      *c = 0;
-      puts(buf);
-      for(w=u; *w; w++)
-       *w = Uunaccent(*w);
-      ucs2_to_utf8(buf, u);
-      puts(buf);
-      for(w=u; *w; w++)
-       *w = Utoupper(*w);
-      ucs2_to_utf8(buf, u);
-      puts(buf);
-      for(w=u; *w; w++)
-       *w = Utolower(*w);
-      ucs2_to_utf8(buf, u);
-      puts(buf);
-      for(w=u; *w; w++)
-       if (!Cprint(*w))
-         putchar('?');
-       else if (Cdigit(*w))
-         putchar('0');
-       else if (Clower(*w))
-         putchar('a');
-       else if (Cupper(*w))
-         putchar('A');
-       else if (Cblank(*w))
-         putchar('_');
-       else
-         putchar('.');
-      putchar('\n');
-    }
-
-  return 0;
-}