gtksource.encoding

Module for [Encoding] class

class Encoding

Types 1

Character encoding.

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.

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.
gtksource.encoding.Encoding[] getDefaultCandidates() static nothrowGets the list of default candidate encodings to try when loading a file.
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)