FilterWindows

A filter for detecting whether or not a text stream claimed to be iso-8859-X is really that charset or if it is really a Windows-CP125x charset.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(string claimedCharset)

Creates a new GMimeFilterWindows filter. When a stream of text has been filtered, it can be determined whether or not said text stream was in claimed_charset or the equivalent Windows-CP125# charset.

Members

Functions

isWindowsCharset
bool isWindowsCharset()

Determines whether or not a Windows-CP125# charset has been detected so far.

realCharset
string realCharset()

Figures out the real charset that the text is encoded in based on whether or not Windows-CP125# characters were found.

self
FilterWindows self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
FilterWindowsGidBuilder builder()

Get builder for gmime.filter_windows.FilterWindows

Inherited Members

From Filter

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Filter self()

Returns this, for use in with statements.

builder
FilterGidBuilder builder()

Get builder for gmime.filter.Filter

backup
void backup(ubyte[] data)

Sets number of bytes backed up on the input, new calls replace previous ones

complete
void complete(ubyte[] inbuf, size_t prespace, ubyte[] outbuf, size_t outprespace)

Completes the filtering.

copy
gmime.filter.Filter copy()

Copies filter into a new #GMimeFilter object.

filter
void filter(ubyte[] inbuf, size_t prespace, ubyte[] outbuf, size_t outprespace)

Filters the input data and writes it to out.

reset
void reset()

Resets the filter.

setSize
void setSize(size_t size, bool keep)

Ensure this much size is available for filter output (if required)