[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Text/ -> Flowed.php (sommaire)

(pas de description)

Poids: 354 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

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 text
using the encoding described in RFC 3676 ('flowed' text).

$Horde: framework/Text_Flowed/Flowed.php,v 1.14.10.17 2006/03/11 09:50:22 jan Exp $

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-2006 Michael Slusarz <slusarz@bigworm.colorado.edu>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Text_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