PHP Class Swift_Encoder_Rfc2231Encoder, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Encoder
Show file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__clone ( ) Make a deep copy of object.
__construct ( Swift_CharacterStream $charStream ) Creates a new Rfc2231Encoder using the given character stream instance.
charsetChanged ( string $charset ) Updates the charset used.
encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string Takes an unencoded string and produces a string encoded according to RFC 2231 from it.

Method Details

__clone() public method

Make a deep copy of object.
public __clone ( )

__construct() public method

Creates a new Rfc2231Encoder using the given character stream instance.
public __construct ( Swift_CharacterStream $charStream )
$charStream Swift_CharacterStream

charsetChanged() public method

Updates the charset used.
public charsetChanged ( string $charset )
$charset string

encodeString() public method

Takes an unencoded string and produces a string encoded according to RFC 2231 from it.
public encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string
$string string
$firstLineOffset integer
$maxLineLength integer optional, 0 indicates the default of 75 bytes
return string