$_maxlength
$_maxlength : integer
The maximum length that a line is allowed to be (unless faced with with a word that is unreasonably long). This class will re-wrap a line if it exceeds this length.
The Text_Flowed:: class provides common methods for manipulating text using the encoding described in RFC 3676 ('flowed' text).
This class is based on the Text::Flowed perl module (Version 0.14) found in the CPAN perl repository. This module is released under the Perl license, which is compatible with the LGPL.
Copyright 2002-2003 Philip Mak Copyright 2004-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
toFixedArray(boolean $quote = false) : array
Reformats the input string, and returns the output in an array format with quote level information.
boolean | $quote | Add level of quoting to each line? |
An array of arrays with the following elements:
'level' - The quote level of the current line. 'text' - The text for the current line.
toFlowed(boolean $quote = false, array $opts = array()) : string
Reformats the input string, where the string is 'format=fixed' plain text as described in RFC 2646.
boolean | $quote | Add level of quoting to each line? |
array | $opts | Additional options: 'nowrap' - (boolean) If true, does not wrap unquoted lines. DEFAULT: false |
The text converted to RFC 2646 'flowed' format.
_reformat(boolean $toflowed, boolean $quote, boolean $wrap = true)
Reformats the input string, where the string is 'format=flowed' plain text as described in RFC 2646.
boolean | $toflowed | Convert to flowed? |
boolean | $quote | Add level of quoting to each line? |
boolean | $wrap | Wrap unquoted lines? |
_stuff(string $text, string $num_quotes, boolean $toflowed) : string
Space-stuffs if it starts with ' ' or '>' or 'From ', or if quote depth is non-zero (for aesthetic reasons so that there is a space after the '>').
string | $text | The text to stuff. |
string | $num_quotes | The quote-level of this line. |
boolean | $toflowed | Are we converting to flowed text? |
The stuffed text.