<refentry id="gal-e-unicode" revision="12 Jan 2001">
<refmeta>
<refentrytitle>e-unicode</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GAL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>e-unicode</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>
<synopsis>



#define     <link linkend="gnome-font-get-size">gnome_font_get_size</link>             (f)
#define     <link linkend="gnome-font-get-glyph-width">gnome_font_get_glyph_width</link>
#define     <link linkend="gnome-font-lookup-default">gnome_font_lookup_default</link>
void        <link linkend="e-unicode-init">e_unicode_init</link>                  (void);
const <link linkend="gchar">gchar</link>* <link linkend="e-utf8-strstrcase">e_utf8_strstrcase</link>              (const <link linkend="gchar">gchar</link> *haystack,
                                             const <link linkend="gchar">gchar</link> *needle);
const <link linkend="gchar">gchar</link>* <link linkend="e-utf8-strstrcasedecomp">e_utf8_strstrcasedecomp</link>        (const <link linkend="gchar">gchar</link> *haystack,
                                             const <link linkend="gchar">gchar</link> *needle);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-from-gtk-event-key">e_utf8_from_gtk_event_key</link>       (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             <link linkend="guint">guint</link> keyval,
                                             const <link linkend="gchar">gchar</link> *string);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-from-gtk-string">e_utf8_from_gtk_string</link>          (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-from-gtk-string-sized">e_utf8_from_gtk_string_sized</link>    (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string,
                                             <link linkend="gint">gint</link> bytes);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-to-gtk-string">e_utf8_to_gtk_string</link>            (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-to-gtk-string-sized">e_utf8_to_gtk_string_sized</link>      (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string,
                                             <link linkend="gint">gint</link> bytes);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-gtk-entry-get-text">e_utf8_gtk_entry_get_text</link>       (<link linkend="GtkEntry">GtkEntry</link> *entry);
void        <link linkend="e-utf8-gtk-entry-set-text">e_utf8_gtk_entry_set_text</link>       (<link linkend="GtkEntry">GtkEntry</link> *entry,
                                             const <link linkend="gchar">gchar</link> *text);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-gtk-editable-get-text">e_utf8_gtk_editable_get_text</link>    (<link linkend="GtkEditable">GtkEditable</link> *editable);
void        <link linkend="e-utf8-gtk-editable-set-text">e_utf8_gtk_editable_set_text</link>    (<link linkend="GtkEditable">GtkEditable</link> *editable,
                                             const <link linkend="gchar">gchar</link> *text);
<link linkend="gchar">gchar</link>*      <link linkend="e-utf8-gtk-editable-get-chars">e_utf8_gtk_editable_get_chars</link>   (<link linkend="GtkEditable">GtkEditable</link> *editable,
                                             <link linkend="gint">gint</link> start,
                                             <link linkend="gint">gint</link> end);
void        <link linkend="e-utf8-gtk-editable-insert-text">e_utf8_gtk_editable_insert_text</link> (<link linkend="GtkEditable">GtkEditable</link> *editable,
                                             const <link linkend="gchar">gchar</link> *text,
                                             <link linkend="gint">gint</link> length,
                                             <link linkend="gint">gint</link> *position);
<link linkend="GtkWidget">GtkWidget</link>*  <link linkend="e-utf8-gtk-menu-item-new-with-label">e_utf8_gtk_menu_item_new_with_label</link>
                                            (<link linkend="GtkMenu">GtkMenu</link> *menu,
                                             const <link linkend="gchar">gchar</link> *label);
void        <link linkend="e-utf8-gtk-clist-set-text">e_utf8_gtk_clist_set_text</link>       (<link linkend="GtkCList">GtkCList</link> *clist,
                                             <link linkend="gint">gint</link> row,
                                             <link linkend="gint">gint</link> col,
                                             const <link linkend="gchar">gchar</link> *text);
<link linkend="gint">gint</link>        <link linkend="e-utf8-gtk-clist-append">e_utf8_gtk_clist_append</link>         (<link linkend="GtkCList">GtkCList</link> *clist,
                                             <link linkend="gchar">gchar</link> *text[]);
<link linkend="gint">gint</link>        <link linkend="g-unichar-to-utf8">g_unichar_to_utf8</link>               (<link linkend="gint">gint</link> c,
                                             <link linkend="gchar">gchar</link> *outbuf);
<link linkend="guint32">guint32</link>     <link linkend="gdk-keyval-to-unicode">gdk_keyval_to_unicode</link>           (<link linkend="guint">guint</link> keysym);
</synopsis>
</refsynopsisdiv>





<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="gnome-font-get-size">gnome_font_get_size()</title>
<programlisting>#define     gnome_font_get_size(f)</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>f</parameter>&nbsp;:</entry>
<entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-font-get-glyph-width">gnome_font_get_glyph_width</title>
<programlisting>#define     gnome_font_get_glyph_width</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-font-lookup-default">gnome_font_lookup_default</title>
<programlisting>#define     gnome_font_lookup_default</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="e-unicode-init">e_unicode_init ()</title>
<programlisting>void        e_unicode_init                  (void);</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="e-utf8-strstrcase">e_utf8_strstrcase ()</title>
<programlisting>const <link linkend="gchar">gchar</link>* e_utf8_strstrcase              (const <link linkend="gchar">gchar</link> *haystack,
                                             const <link linkend="gchar">gchar</link> *needle);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>haystack</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>needle</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-strstrcasedecomp">e_utf8_strstrcasedecomp ()</title>
<programlisting>const <link linkend="gchar">gchar</link>* e_utf8_strstrcasedecomp        (const <link linkend="gchar">gchar</link> *haystack,
                                             const <link linkend="gchar">gchar</link> *needle);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>haystack</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>needle</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-from-gtk-event-key">e_utf8_from_gtk_event_key ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_from_gtk_event_key       (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             <link linkend="guint">guint</link> keyval,
                                             const <link linkend="gchar">gchar</link> *string);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>widget</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>keyval</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>string</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-from-gtk-string">e_utf8_from_gtk_string ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_from_gtk_string          (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>widget</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>string</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-from-gtk-string-sized">e_utf8_from_gtk_string_sized ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_from_gtk_string_sized    (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string,
                                             <link linkend="gint">gint</link> bytes);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>widget</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>string</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>bytes</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-to-gtk-string">e_utf8_to_gtk_string ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_to_gtk_string            (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>widget</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>string</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-to-gtk-string-sized">e_utf8_to_gtk_string_sized ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_to_gtk_string_sized      (<link linkend="GtkWidget">GtkWidget</link> *widget,
                                             const <link linkend="gchar">gchar</link> *string,
                                             <link linkend="gint">gint</link> bytes);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>widget</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>string</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>bytes</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-entry-get-text">e_utf8_gtk_entry_get_text ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_gtk_entry_get_text       (<link linkend="GtkEntry">GtkEntry</link> *entry);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>entry</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-entry-set-text">e_utf8_gtk_entry_set_text ()</title>
<programlisting>void        e_utf8_gtk_entry_set_text       (<link linkend="GtkEntry">GtkEntry</link> *entry,
                                             const <link linkend="gchar">gchar</link> *text);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>entry</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-editable-get-text">e_utf8_gtk_editable_get_text ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_gtk_editable_get_text    (<link linkend="GtkEditable">GtkEditable</link> *editable);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>editable</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-editable-set-text">e_utf8_gtk_editable_set_text ()</title>
<programlisting>void        e_utf8_gtk_editable_set_text    (<link linkend="GtkEditable">GtkEditable</link> *editable,
                                             const <link linkend="gchar">gchar</link> *text);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>editable</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-editable-get-chars">e_utf8_gtk_editable_get_chars ()</title>
<programlisting><link linkend="gchar">gchar</link>*      e_utf8_gtk_editable_get_chars   (<link linkend="GtkEditable">GtkEditable</link> *editable,
                                             <link linkend="gint">gint</link> start,
                                             <link linkend="gint">gint</link> end);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>editable</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>start</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>end</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-editable-insert-text">e_utf8_gtk_editable_insert_text ()</title>
<programlisting>void        e_utf8_gtk_editable_insert_text (<link linkend="GtkEditable">GtkEditable</link> *editable,
                                             const <link linkend="gchar">gchar</link> *text,
                                             <link linkend="gint">gint</link> length,
                                             <link linkend="gint">gint</link> *position);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>editable</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>length</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>position</parameter>&nbsp;:</entry>
<entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-menu-item-new-with-label">e_utf8_gtk_menu_item_new_with_label ()</title>
<programlisting><link linkend="GtkWidget">GtkWidget</link>*  e_utf8_gtk_menu_item_new_with_label
                                            (<link linkend="GtkMenu">GtkMenu</link> *menu,
                                             const <link linkend="gchar">gchar</link> *label);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>menu</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>label</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-clist-set-text">e_utf8_gtk_clist_set_text ()</title>
<programlisting>void        e_utf8_gtk_clist_set_text       (<link linkend="GtkCList">GtkCList</link> *clist,
                                             <link linkend="gint">gint</link> row,
                                             <link linkend="gint">gint</link> col,
                                             const <link linkend="gchar">gchar</link> *text);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>clist</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>row</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>col</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="e-utf8-gtk-clist-append">e_utf8_gtk_clist_append ()</title>
<programlisting><link linkend="gint">gint</link>        e_utf8_gtk_clist_append         (<link linkend="GtkCList">GtkCList</link> *clist,
                                             <link linkend="gchar">gchar</link> *text[]);</programlisting>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>clist</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="g-unichar-to-utf8">g_unichar_to_utf8 ()</title>
<programlisting><link linkend="gint">gint</link>        g_unichar_to_utf8               (<link linkend="gint">gint</link> c,
                                             <link linkend="gchar">gchar</link> *outbuf);</programlisting>
<para>
Convert a single character to utf8</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>c</parameter>&nbsp;:</entry>
<entry> a ISO10646 character code
</entry></row>
<row><entry align="right"><parameter>outbuf</parameter>&nbsp;:</entry>
<entry> output buffer, must have at least 6 bytes of space.
If <literal>NULL</literal>, the length will be computed and returned
and nothing will be written to <parameter>out</parameter>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> number of bytes written
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gdk-keyval-to-unicode">gdk_keyval_to_unicode ()</title>
<programlisting><link linkend="guint32">guint32</link>     gdk_keyval_to_unicode           (<link linkend="guint">guint</link> keysym);</programlisting>
<para>
Convert from a GDK key symbol to the corresponding ISO10646 (Unicode)
character.</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>keysym</parameter>&nbsp;:</entry>
<entry> a GDK key symbol 
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the corresponding unicode character, or 0 if there
is no corresponding character.
</entry></row>
</tbody></tgroup></informaltable></refsect2>

</refsect1>




</refentry>
