gio.charset_converter

Module for [CharsetConverter] class

Types 3

[gio.charset_converter.CharsetConverter] is an implementation of [gio.converter.Converter] based on [glib.types.void*].

Methods
GType _gType() @property
CharsetConverter self()Returns `this`, for use in `with` statements.
CharsetConverterGidBuilder builder()Get builder for [gio.charset_converter.CharsetConverter] Returns: New builder object
string fromCharset() @propertyGet `fromCharset` property. Returns: The character encoding to convert from.
string toCharset() @propertyGet `toCharset` property. Returns: The character encoding to convert to.
bool useFallback() @propertyGet `useFallback` property. Returns: Use fallback (of form `\<hexval>`) for invalid bytes.
void useFallback(bool propval) @propertySet `useFallback` property. Params: propval = Use fallback (of form `\<hexval>`) for invalid bytes.
uint getNumFallbacks()Gets the number of fallbacks that converter has applied so far. Returns: the number of fallbacks that converter has applied
bool getUseFallback()Gets the #GCharsetConverter:use-fallback property. Returns: true if fallbacks are used by converter
void setUseFallback(bool useFallback)Sets the #GCharsetConverter:use-fallback property.
Constructors
this(void * ptr, Flag!"Take" take)
this(string toCharset, string fromCharset)Creates a new #GCharsetConverter.
Methods
T fromCharset(string propval)Set `fromCharset` property. Params: propval = The character encoding to convert from. Returns: Builder instance for fluent chaining
T toCharset(string propval)Set `toCharset` property. Params: propval = The character encoding to convert to. Returns: Builder instance for fluent chaining
T useFallback(bool propval)Set `useFallback` property. Params: propval = Use fallback (of form `\<hexval>`) for invalid bytes. Returns: Builder instance for fluent chaining

Fluent builder for [gio.charset_converter.CharsetConverter]