]> granicus.if.org Git - fribidi/commitdiff
Added. Enumerates bidi char types into stdout.
authorbehdad <behdad>
Tue, 7 Jun 2005 08:20:05 +0000 (08:20 +0000)
committerbehdad <behdad>
Tue, 7 Jun 2005 08:20:05 +0000 (08:20 +0000)
bin/Makefile.am
bin/fribidi-bidi-types.c [new file with mode: 0644]

index d4d5cce0e019378bf6d1925083a4106803df4064..cc51ee939f326908348c41f9df4c8bde8d809b72 100644 (file)
@@ -1,6 +1,6 @@
 bin_PROGRAMS = fribidi
 
-noinst_PROGRAMS = fribidi-benchmark
+noinst_PROGRAMS = fribidi-benchmark fribidi-bidi-types
 
 getopt_SOURCES = getopt.c getopt1.c getopt_int.h getopt.h gettext.h
 
diff --git a/bin/fribidi-bidi-types.c b/bin/fribidi-bidi-types.c
new file mode 100644 (file)
index 0000000..ecc8dfc
--- /dev/null
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <fribidi.h>
+
+int
+main()
+{
+
+  FriBidiChar c;
+
+  for (c = 0; c < FRIBIDI_UNICODE_CHARS; c++)
+    printf ("0x%04lx   %s\n", (long) c, fribidi_get_bidi_type_name(fribidi_get_bidi_type(c)));
+
+  return 0;
+}