mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 07:25:41 +00:00
05e4e0b9d3
* generator/SymbolTable.cs : don't use StringGen for gunichar. * glib/glue/unichar.c : glue to fetch a gunichar as a utf8 string. * glib/glue/Makefile.am : add unichar.c * glib/glue/makefile.win32 : add unichar.c * gtk/Gtk.metadata : hide TextIter.GetChar * gtk/TextIter.custom : manually impl Char prop. [fixes #53425] svn path=/trunk/gtk-sharp/; revision=25054
24 lines
418 B
C
24 lines
418 B
C
/* unichar.c : Glue to access unichars as strings.
|
|
*
|
|
* Author: Mike Kestner <mkestner@ximian.com>
|
|
*
|
|
* Copyright <c> 2004 Novell, Inc.
|
|
*/
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
/* Forward declarations */
|
|
gchar *gtksharp_unichar_to_utf8_string (gunichar chr);
|
|
/* */
|
|
|
|
gchar *
|
|
gtksharp_unichar_to_utf8_string (gunichar chr)
|
|
{
|
|
gchar *buf = g_new0 (gchar, 7);
|
|
gint cnt = g_unichar_to_utf8 (chr, buf);
|
|
buf [cnt] = 0;
|
|
return buf;
|
|
}
|
|
|