XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($name, $canonical=false) | |
charsetChanged ($charset) | |
encodeByteStream (Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset=0, $maxLineLength=0) | |
encodeString ($string, $firstLineOffset=0, $maxLineLength=0) | |
getName () | |
Private Member Functions | |
_canonicalize ($string) | |
_safeWordwrap ($string, $length=75, $le="\r\n") | |
Private Attributes | |
$_canonical | |
$_name | |
Definition at line 21 of file PlainContentEncoder.php.
Swift_Mime_ContentEncoder_PlainContentEncoder::__construct | ( | $name, | |
$canonical = false |
|||
) |
Creates a new PlainContentEncoder with $name (probably 7bit or 8bit).
string | $name | |
boolean | $canonical | If canonicalization transformation should be done. |
Definition at line 44 of file PlainContentEncoder.php.
|
private |
Canonicalize string input (fix CRLF).
string | $string |
Definition at line 166 of file PlainContentEncoder.php.
Referenced by encodeByteStream(), and encodeString().
|
private |
A safer (but weaker) wordwrap for unicode.
string | $string | |
int | $length | |
string | $le |
Definition at line 125 of file PlainContentEncoder.php.
Swift_Mime_ContentEncoder_PlainContentEncoder::charsetChanged | ( | $charset | ) |
Not used.
Implements Swift_Mime_CharsetObserver.
Definition at line 111 of file PlainContentEncoder.php.
Swift_Mime_ContentEncoder_PlainContentEncoder::encodeByteStream | ( | Swift_OutputByteStream | $os, |
Swift_InputByteStream | $is, | ||
$firstLineOffset = 0 , |
|||
$maxLineLength = 0 |
|||
) |
Encode stream $in to stream $out.
Swift_OutputByteStream | $in | |
Swift_InputByteStream | $out | |
int | $firstLineOffset,ignored | |
int | $maxLineLength,optional,0 | means no wrapping will occur |
Implements Swift_Mime_ContentEncoder.
Definition at line 74 of file PlainContentEncoder.php.
References _canonicalize(), Swift_OutputByteStream\read(), and Swift_InputByteStream\write().
Swift_Mime_ContentEncoder_PlainContentEncoder::encodeString | ( | $string, | |
$firstLineOffset = 0 , |
|||
$maxLineLength = 0 |
|||
) |
Encode a given string to produce an encoded string.
string | $string | |
int | $firstLineOffset,ignored | |
int | $maxLineLength | - 0 means no wrapping will occur |
Implements Swift_Encoder.
Definition at line 57 of file PlainContentEncoder.php.
References _canonicalize().
Swift_Mime_ContentEncoder_PlainContentEncoder::getName | ( | ) |
Get the name of this encoding scheme.
Implements Swift_Mime_ContentEncoder.
Definition at line 103 of file PlainContentEncoder.php.
References $_name.
|
private |
Definition at line 37 of file PlainContentEncoder.php.
|
private |
Definition at line 30 of file PlainContentEncoder.php.
Referenced by getName().