gtksource.encoding

Module for [Encoding] class

class Encoding

Types 1

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