Add (fake) g_unichar_to_utf8

This commit is contained in:
Evan Miller
2021-01-22 07:45:47 -05:00
parent da80fb3430
commit 4e969425ac
2 changed files with 19 additions and 11 deletions

View File

@@ -45,6 +45,7 @@ typedef void * gpointer;
typedef const void * gconstpointer;
typedef uint8_t guint8;
typedef guint32 GQuark;
typedef guint32 gunichar;
typedef guint (*GHashFunc)(gconstpointer);
typedef int (*GCompareFunc)(gconstpointer, gconstpointer);
@@ -153,6 +154,7 @@ gchar *g_strdelimit(gchar *string, const gchar *delimiters, gchar new_delimiter)
void g_printerr(const gchar *format, ...);
/* conversion */
gint g_unichar_to_utf8(gunichar c, gchar *dst);
gchar *g_locale_to_utf8(const gchar *opsysstring, size_t len,
size_t *bytes_read, size_t *bytes_written, GError **error);