CharsetConverter

open class CharsetConverter(pointer: <Error class: unknown class><<Error class: unknown class>>) : Converter, Initable

GCharsetConverter is an implementation of iface@Gio.Converter based on struct@GLib.IConv.

Skipped during bindings generation

  • method from-charset: Property has no getter nor setter

  • method to-charset: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(toCharset: String, fromCharset: String)

Creates a new #GCharsetConverter.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioCharsetConverterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gioConverterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gioInitablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Use fallback (of form \<hexval>) for invalid bytes.

Functions

Link copied to clipboard
open fun convertBytes(bytes: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>>

Applies @converter to the data in @bytes.

Link copied to clipboard
open fun getNumFallbacks(): <Error class: unknown class>

Gets the number of fallbacks that @converter has applied so far.

Link copied to clipboard
open fun init(cancellable: Cancellable? = null): <Error class: unknown class><Boolean>

Initializes the object implementing the interface.

Link copied to clipboard
open fun reset()

Resets all internal state in the converter, making it behave as if it was just created. If the converter has any internal state that would produce output then that output is lost.