[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 354 lignes (12 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Text_Flowed:: (11 méthodes):
Text_Flowed()
setMaxLength()
setOptLength()
setDelSp()
toFixed()
toFixedArray()
toFlowed()
_reformat()
_numquotes()
_stuff()
_unstuff()
Classe: Text_Flowed - X-Ref
The Text_Flowed:: class provides common methods for manipulating textText_Flowed($text, $charset = null) X-Ref |
Constructor. param: string $text The text to process. param: string $charset The character set of $text. |
setMaxLength($max) X-Ref |
Set the maximum length of a line of text. param: integer $max A new value for $_maxlength. |
setOptLength($opt) X-Ref |
Set the optimal length of a line of text. param: integer $max A new value for $_optlength. |
setDelSp($delsp) X-Ref |
Set whether to format test using DelSp. param: boolean $delsp Use DelSp? |
toFixed($quote = false) X-Ref |
Reformats the input string, where the string is 'format=flowed' plain text as described in RFC 2646. param: boolean $quote Add level of quoting to each line? return: string The text converted to RFC 2646 'fixed' format. |
toFixedArray($quote = false) X-Ref |
Reformats the input string, and returns the output in an array format with quote level information. param: boolean $quote Add level of quoting to each line? return: array An array of arrays with the following elements: |
toFlowed($quote = false) X-Ref |
Reformats the input string, where the string is 'format=fixed' plain text as described in RFC 2646. param: boolean $quote Add level of quoting to each line? return: string The text converted to RFC 2646 'flowed' format. |
_reformat($toflowed, $quote) X-Ref |
Reformats the input string, where the string is 'format=flowed' plain text as described in RFC 2646. param: boolean $toflowed Convert to flowed? param: boolean $quote Add level of quoting to each line? return: array A list of arrays. |
_numquotes($text) X-Ref |
Returns the number of leading '>' characters in the text input. '>' characters are defined by RFC 2646 to indicate a quoted line. param: string $text The text to analyze. return: integer The number of leading quote characters. |
_stuff($text, $num_quotes, $toflowed) X-Ref |
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 '>'). param: string $text The text to stuff. param: string $num_quotes The quote-level of this line. param: boolean $toflowed Are we converting to flowed text? return: string The stuffed text. |
_unstuff($text) X-Ref |
Unstuffs a space stuffed line. param: string $text The text to unstuff. return: string The unstuffed text. |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |