ae.net.ietf.wrap

RFC 2646. May be upgraded to RFC 3676 for international text.

Members

Enums

WrapFormat
enum WrapFormat

Specifies the format for how line breaks and paragraphs are encoded in a message.

Functions

unwrapText
Paragraph[] unwrapText(string text, WrapFormat wrapFormat)

Parses a message body holding text in the specified format, and returns parsed paragraphs.

wrapText
string wrapText(Paragraph[] paragraphs, int margin)

Returns wrapped text in the WrapFormat.flowed format.

Manifest constants

DEFAULT_WRAP_LENGTH
enum DEFAULT_WRAP_LENGTH;

The default value of wrapText's margin parameter.

Structs

Paragraph
struct Paragraph

A plain-text paragraph.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>