GMimeFilterStrip

GMimeFilterStrip — Strip trailing whitespace from the end of lines

Functions

Types and Values

Description

Only ASCII spaces and tabs are stripped, immediately before either CR or LF and at the end of completed input. Newline bytes, nonblank bytes and internal whitespace are preserved without character-set conversion.

Blanks are buffered across input chunks until subsequent input determines whether they are internal or trailing. Completion processes its final input before discarding any remaining blanks, including blanks buffered by earlier calls. Reset discards pending blanks; copying creates a fresh filter without copying buffered input.

Functions

g_mime_filter_strip_new ()

GMimeFilter *
g_mime_filter_strip_new (void);

Creates a new GMimeFilterStrip filter which strips trailing ASCII spaces and tabs before CR, LF and the end of completed input. Internal blanks are preserved, including those spanning input chunks.

Returns

a new strip filter.

[transfer full]

Types and Values

GMimeFilterStrip

typedef struct _GMimeFilterStrip GMimeFilterStrip;

A filter for stripping trailing ASCII spaces and tabs from lines and completed input, matching MimeKit's TrailingWhitespaceFilter.

See Also

GMimeFilter