GMimeFilterUnix2Dos

GMimeFilterUnix2Dos — Convert line-endings from UNIX (LF) to Windows/DOS (CRLF).

Functions

Types and Values

Description

A GMimeFilter for converting from UNIX to DOS line-endings.

Functions

g_mime_filter_unix2dos_new ()

GMimeFilter *
g_mime_filter_unix2dos_new (gboolean ensure_newline);

Creates a new GMimeFilterUnix2Dos filter.

Parameters

ensure_newline

TRUE if the filter should ensure that the stream ends in a new line

 

Returns

a new GMimeFilterUnix2Dos filter.

Types and Values

struct GMimeFilterUnix2Dos

struct GMimeFilterUnix2Dos {
	GMimeFilter parent_object;

	gboolean ensure_newline;
	char pc;
};

A filter to convert a stream from Windows/DOS line endings to Unix line endings.

Members

GMimeFilter parent_object;

parent GMimeFilter

 

gboolean ensure_newline;

TRUE if the filter should ensure that the stream ends with a new line

 

char pc;

the previous character encountered