git: Line endings of README.txt
[projects/chimara/chimara.git] / libchimara / charset.h
1 #ifndef CHARSET_H
2 #define CHARSET_H
3
4 #include <glib.h>
5
6 #define PLACEHOLDER '?'
7 #define PLACEHOLDER_STRING "?"
8 /* Our placeholder character is '?'; other options are possible, like printing "0x7F" or something */
9
10 G_GNUC_INTERNAL gchar *convert_latin1_to_utf8(const gchar *s, const gsize len);
11 G_GNUC_INTERNAL gchar *convert_latin1_to_ucs4be_string(const gchar *s, const gsize len);
12 G_GNUC_INTERNAL gchar *convert_utf8_to_latin1(const gchar *s, gsize *bytes_written);
13 G_GNUC_INTERNAL gunichar *convert_utf8_to_ucs4(const gchar *s, glong *items_written);
14 G_GNUC_INTERNAL gchar *convert_ucs4_to_utf8(const gunichar *buf, const glong len);
15 G_GNUC_INTERNAL gchar *convert_ucs4_to_latin1_binary(const gunichar *buf, const glong len);
16 G_GNUC_INTERNAL gchar *convert_ucs4_to_ucs4be_string(const gunichar *buf, const glong len);
17
18 #endif /* CHARSET_H */