Method | Description | |
---|---|---|
__construct ( string $name, boolean $canonical = false ) | Creates a new PlainContentEncoder with $name (probably 7bit or 8bit). | |
charsetChanged ( $charset ) | Not used. | |
encodeByteStream ( Swift_OutputByteStream $os, Swift_InputByteStream $is, integer $firstLineOffset, integer $maxLineLength ) | Encode stream $in to stream $out. | |
encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string | Encode a given string to produce an encoded string. | |
getName ( ) : string | Get the name of this encoding scheme. |
Method | Description | |
---|---|---|
_canonicalize ( string $string ) : string | Canonicalize string input (fix CRLF). | |
_safeWordwrap ( string $string, integer $length = 75, string $le = " " ) : string | A safer (but weaker) wordwrap for unicode. |
public __construct ( string $name, boolean $canonical = false ) | ||
$name | string | |
$canonical | boolean | If canonicalization transformation should be done. |
public encodeByteStream ( Swift_OutputByteStream $os, Swift_InputByteStream $is, integer $firstLineOffset, integer $maxLineLength ) | ||
$os | Swift_OutputByteStream | |
$is | Swift_InputByteStream | |
$firstLineOffset | integer | ignored |
$maxLineLength | integer | optional, 0 means no wrapping will occur |