unicodeio.h 719 B

1234567891011121314151617181920212223242526
  1. #ifndef UNICODEIO_H
  2. # define UNICODEIO_H
  3. # include <stdio.h>
  4. # ifndef PARAMS
  5. # if defined PROTOTYPES || (defined __STDC__ && __STDC__)
  6. # define PARAMS(Args) Args
  7. # else
  8. # define PARAMS(Args) ()
  9. # endif
  10. # endif
  11. /* Converts the Unicode character CODE to its multibyte representation
  12. in the current locale and calls the CALLBACK on the resulting byte
  13. sequence. */
  14. extern void unicode_to_mb
  15. PARAMS ((unsigned int code,
  16. void (*callback) PARAMS ((const char *buf, size_t buflen,
  17. void *callback_arg)),
  18. void *callback_arg));
  19. /* Outputs the Unicode character CODE to the output stream STREAM. */
  20. extern void print_unicode_char PARAMS((FILE *stream, unsigned int code));
  21. #endif