From 33e0d0e847cee22aaa127e3ae1e75c27cc41f5b4 Mon Sep 17 00:00:00 2001 From: Lauris Kaplinski Date: Wed, 3 Jan 2001 03:03:34 +0000 Subject: Added functions for encoding utf8 safely into libxml brokenness svn path=/trunk/; revision=7225 --- widgets/misc/e-unicode.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'widgets/misc/e-unicode.h') diff --git a/widgets/misc/e-unicode.h b/widgets/misc/e-unicode.h index 7734661bef..1b51595f6c 100644 --- a/widgets/misc/e-unicode.h +++ b/widgets/misc/e-unicode.h @@ -1,6 +1,16 @@ #ifndef _E_UNICODE_H_ #define _E_UNICODE_H_ +/* + * UTF-8 support functions for gal + * + * Authors: + * Lauris Kaplinski + * + * Copyright (C) 2000-2001 Helix Code, Inc. + * + */ + #include #include #include @@ -15,6 +25,8 @@ BEGIN_GNOME_DECLS #define gnome_font_lookup_default gnome_font_get_glyph #endif +#define G_UTF8_IN_GAL + void e_unicode_init (void); /* @@ -56,6 +68,9 @@ GtkWidget *e_utf8_gtk_menu_item_new_with_label (GtkMenu *menu, const gchar *labe void e_utf8_gtk_clist_set_text (GtkCList *clist, gint row, gint col, const gchar *text); gint e_utf8_gtk_clist_append (GtkCList *clist, gchar *text[]); +gchar * e_utf8_xml1_decode (const gchar *text); +gchar * e_utf8_xml1_encode (const gchar *text); + gint g_unichar_to_utf8 (gint c, gchar *outbuf); guint32 gdk_keyval_to_unicode (guint keysym); -- cgit v1.2.3