Class Swift_Encoder_QpEncoder
Handles Quoted Printable (QP) Encoding in Swift Mailer. Possibly the most accurate RFC 2045 QP implementation found in PHP.
- Swift_Encoder_QpEncoder implements Swift_Encoder
Direct known subclasses
Swift_Mime_ContentEncoder_QpContentEncoder
,
Swift_Mime_HeaderEncoder_QpHeaderEncoder
Package: Swift\Encoder
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Encoder/QpEncoder.php
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Encoder/QpEncoder.php
Methods summary
public
|
#
__construct(
Creates a new QpEncoder for the given CharacterStream. |
public
|
|
public
|
|
protected
|
|
protected
|
|
public
string
|
#
encodeString( string $string, integer $firstLineOffset = 0, integer $maxLineLength = 0 )
Takes an unencoded string and produces a QP encoded string from it. QP encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset. |
public
|
|
protected
string
|
#
_encodeByteSequence( array $bytes, mixed & $size )
Encode the given byte array into a verbatim QP form. |
protected
int[]
|
|
protected
string
|
Magic methods summary
Properties summary
protected
|
$_charStream |
#
The CharacterStream used for reading characters (as opposed to bytes). |
protected
|
$_filter |
#
A filter used if input should be canonicalized. |
protected static
string[]
|
$_qpMap |
#
Pre-computed QP for HUGE optmization. |
protected static
array
|
$_safeMapShare | |
protected
string[]
|
$_safeMap |
#
A map of non-encoded ascii characters. |