gtksource.encoding

Module for [Encoding] class

class Encoding

Types 1

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
Encoding self()Returns `this`, for use in `with` statements.
gtksource.encoding.Encoding copy()Used by language bindings. Returns: a copy of enc.
string getCharset()Gets the character set of the #GtkSourceEncoding, such as "UTF-8" or "ISO-8859-1". Returns: the character set of the #GtkSourceEncoding.
string getName()Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western". Returns: the name of the #GtkSourceEncoding.
string toString_()
gtksource.encoding.Encoding[] getAll()Gets all encodings. Returns: a list of all #GtkSourceEncoding's. Free with [glib.slist.SList.free].
gtksource.encoding.Encoding getCurrent()Gets the #GtkSourceEncoding for the current locale. See also [glib.global.getCharset]. Returns: the current locale encoding.
gtksource.encoding.Encoding[] getDefaultCandidates()Gets the list of default candidate encodings to try when loading a file. See [gtksource.file_loader.FileLoader.setCandidateEncodings].
gtksource.encoding.Encoding getFromCharset(string charset)Gets a #GtkSourceEncoding from a character set such as "UTF-8" or "ISO-8859-1".
Constructors
this(void * ptr, Flag!"Take" take)