Handles Quoted Printable (Q) Header Encoding in Swift Mailer.
Possibly the most accurate RFC 2045 QP implementation found in PHP.
Methods
Creates a new QpHeaderEncoder for the given CharacterStream.
__construct(\Swift_CharacterStream $charStream)
__sleep()
__sleep()
Inherited
inherited_from |
\Swift_Encoder_QpEncoder::__sleep() |
__wakeup()
__wakeup()
Inherited
inherited_from |
\Swift_Encoder_QpEncoder::__wakeup() |
Notify this observer that the entity's charset has changed.
charsetChanged(string $charset)
Inherited
inherited_from |
\Swift_Mime_CharsetObserver::charsetChanged() |
inherited_from |
\Swift_Encoder::charsetChanged() |
inherited_from |
\Swift_Mime_HeaderEncoder::charsetChanged() |
Parameters
$charset
string
Takes an unencoded string and produces a Q encoded string from it.
encodeString(string $string, $firstLineOffset, $maxLineLength, $charst) : string
QP encoded strings have a maximum line length of 76 characters.
If the first line needs to be shorter, indicate the difference with
$firstLineOffset.
Parameters
$firstLineOffset
$maxLineLength
$charst
Returns
string
Get the name of this encoding scheme.
getName() : string
Encode the given byte array into a verbatim QP form.
_encodeByteSequence(array $bytes, $size) : string
Inherited
access |
protected |
inherited_from |
\Swift_Encoder_QpEncoder::_encodeByteSequence() |
Parameters
$bytes
int[]
$size
Returns
string
Get the next sequence of bytes to read from the char stream.
_nextSequence(int $size) : int[]
Inherited
access |
protected |
inherited_from |
\Swift_Encoder_QpEncoder::_nextSequence() |
Parameters
$size
int
number of bytes to read
Returns
int[]
Make sure CRLF is correct and HT/SPACE are in valid places.
_standardize(string $string) : string
Inherited
access |
protected |
inherited_from |
\Swift_Encoder_QpEncoder::_standardize() |
Parameters
$string
string
Returns
string
getSafeMapShareId()
getSafeMapShareId()
Inherited
inherited_from |
\Swift_Encoder_QpEncoder::getSafeMapShareId() |
initSafeMap()
initSafeMap()
Properties
$_charStream : \Swift_CharacterStream
Inherited
access |
protected |
inherited_from |
\Swift_Encoder_QpEncoder::$$_charStream |
$_filter : \Swift_StreamFilter
Inherited
access |
protected |
inherited_from |
\Swift_Encoder_QpEncoder::$$_filter |
$_qpMap : string[]
Inherited
access |
protected |
inherited_from |
\Swift_Encoder_QpEncoder::$$_qpMap |
$_safeMap : string[]
Inherited
access |
protected |
inherited_from |
\Swift_Encoder_QpEncoder::$$_safeMap |
$_safeMapShare
Inherited
inherited_from |
\Swift_Encoder_QpEncoder::$$_safeMapShare |