SourceEncoding
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gtk_source_encoding_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "Encoding" ) ]
public class SourceEncoding
Content:
Static methods:
- public static SList<unowned SourceEncoding> et_all ()
Gets all encodings.
- public static unowned SourceEncoding et_current ()
Gets the SourceEncoding for the current
locale.
- public static SList<unowned SourceEncoding> et_default_candidates ()
Gets the list of default candidate encodings to try when loading a
file.
- public static unowned SourceEncoding? et_from_charset (string charset)
Gets a SourceEncoding from a character set
such as "UTF-8" or "ISO-8859-1".
- public static unowned SourceEncoding et_utf8 ()
Methods:
- public SourceEncoding copy ()
Used by language bindings.
- public void free ()
Used by language bindings.
- public unowned string get_charset ()
Gets the character set of the SourceEncoding
, such as "UTF-8" or "ISO-8859-1".
- public unowned string get_name ()
Gets the name of the SourceEncoding such as
"Unicode" or "Western".
- public string to_string ()