]> Dogcows Code - chaz/tar/blobdiff - lib/unicodeio.h
Initial revision
[chaz/tar] / lib / unicodeio.h
diff --git a/lib/unicodeio.h b/lib/unicodeio.h
new file mode 100644 (file)
index 0000000..c462b3e
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef UNICODEIO_H
+# define UNICODEIO_H
+
+# include <stdio.h>
+
+# ifndef PARAMS
+#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+#   define PARAMS(Args) Args
+#  else
+#   define PARAMS(Args) ()
+#  endif
+# endif
+
+/* Converts the Unicode character CODE to its multibyte representation
+   in the current locale and calls the CALLBACK on the resulting byte
+   sequence.  */
+extern void unicode_to_mb
+           PARAMS ((unsigned int code,
+                    void (*callback) PARAMS ((const char *buf, size_t buflen,
+                                              void *callback_arg)),
+                    void *callback_arg));
+
+/* Outputs the Unicode character CODE to the output stream STREAM.  */
+extern void print_unicode_char PARAMS((FILE *stream, unsigned int code));
+
+#endif
This page took 0.021699 seconds and 4 git commands to generate.