Property | Type | Description | |
---|---|---|---|
$_charStream | Swift_CharacterStream | The CharacterStream used for reading characters (as opposed to bytes). | |
$_filter | Swift_StreamFilter | A filter used if input should be canonicalized. | |
$_qpMap | string[] | Pre-computed QP for HUGE optimization. | |
$_safeMap | string[] | A map of non-encoded ascii characters. | |
$_safeMapShare |
Method | Description | |
---|---|---|
__clone ( ) | Make a deep copy of object. | |
__construct ( Swift_CharacterStream $charStream, Swift_StreamFilter $filter = null ) | Creates a new QpEncoder for the given CharacterStream. | |
__sleep ( ) | ||
__wakeup ( ) | ||
charsetChanged ( string $charset ) | Updates the charset used. | |
encodeString ( string $string, $firstLineOffset, $maxLineLength ) : string | Takes an unencoded string and produces a QP encoded string from it. |
Method | Description | |
---|---|---|
_encodeByteSequence ( array $bytes, integer &$size ) : string | Encode the given byte array into a verbatim QP form. | |
_nextSequence ( integer $size = 4 ) : integer[] | Get the next sequence of bytes to read from the char stream. | |
_standardize ( string $string ) : string | Make sure CRLF is correct and HT/SPACE are in valid places. | |
getSafeMapShareId ( ) | ||
initSafeMap ( ) |
public __construct ( Swift_CharacterStream $charStream, Swift_StreamFilter $filter = null ) | ||
$charStream | Swift_CharacterStream | to use for reading characters |
$filter | Swift_StreamFilter | if input should be canonicalized |
protected _nextSequence ( integer $size = 4 ) : integer[] | ||
$size | integer | number of bytes to read |
return | integer[] |
protected _standardize ( string $string ) : string | ||
$string | string | |
return | string |
public charsetChanged ( string $charset ) | ||
$charset | string |
public encodeString ( string $string, $firstLineOffset, $maxLineLength ) : string | ||
$string | string | to encode |
return | string |
protected Swift_CharacterStream $_charStream | ||
return | Swift_CharacterStream |
protected Swift_StreamFilter $_filter | ||
return | Swift_StreamFilter |
protected static string[] $_qpMap | ||
return | string[] |