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 () |
GSList * | gtk_source_encoding_get_default_candidates () |
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
GSList *
gtk_source_encoding_get_default_candidates
(void
);
Gets the list of default candidate encodings to try when loading a file. See
gtk_source_file_loader_set_candidate_encodings()
.
This function returns a different list depending on the current locale (i.e. language, country and default encoding). The UTF-8 encoding and the current locale encoding are guaranteed to be present in the returned list.
the list of
default candidate encodings. Free with g_slist_free()
.
[transfer container][element-type GtkSource.Encoding]
Since: 3.18
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