Top |
const GtkSourceEncoding * | gtk_source_encoding_get_utf8 () |
const GtkSourceEncoding * | gtk_source_encoding_get_current () |
const GtkSourceEncoding * | gtk_source_encoding_get_from_charset () |
gchar * | gtk_source_encoding_to_string () |
const gchar * | gtk_source_encoding_get_name () |
const gchar * | gtk_source_encoding_get_charset () |
GSList * | gtk_source_encoding_get_all () |
GtkSourceEncoding * | gtk_source_encoding_copy () |
void | gtk_source_encoding_free () |
The GtkSourceEncoding boxed type represents a character encoding. It is used for example by GtkSourceFile. Note that the text in GTK+ widgets is always encoded in UTF-8.
const GtkSourceEncoding *
gtk_source_encoding_get_utf8 (void
);
Since 3.14
const GtkSourceEncoding *
gtk_source_encoding_get_current (void
);
Gets the GtkSourceEncoding for the current locale. See also g_get_charset()
.
Since 3.14
const GtkSourceEncoding *
gtk_source_encoding_get_from_charset (const gchar *charset
);
Gets a GtkSourceEncoding from a character set such as "UTF-8" or "ISO-8859-1".
Since 3.14
gchar *
gtk_source_encoding_to_string (const GtkSourceEncoding *enc
);
Since 3.14
const gchar *
gtk_source_encoding_get_name (const GtkSourceEncoding *enc
);
Gets the name of the GtkSourceEncoding such as "Unicode" or "Western".
Since 3.14
const gchar *
gtk_source_encoding_get_charset (const GtkSourceEncoding *enc
);
Gets the character set of the GtkSourceEncoding, such as "UTF-8" or "ISO-8859-1".
Since 3.14
GSList *
gtk_source_encoding_get_all (void
);
Gets all encodings.
a list of
all GtkSourceEncoding's. Free with g_slist_free()
.
[transfer container][element-type GtkSource.Encoding]
Since 3.14
GtkSourceEncoding *
gtk_source_encoding_copy (const GtkSourceEncoding *enc
);
Used by language bindings.
Since 3.14
void
gtk_source_encoding_free (GtkSourceEncoding *enc
);
Used by language bindings.
Since 3.14