XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Mime_HeaderEncoder_QpHeaderEncoder Class Reference
Inheritance diagram for Swift_Mime_HeaderEncoder_QpHeaderEncoder:
Inheritance graph

Public Member Functions

 __construct (Swift_CharacterStream $charStream)
 
 encodeString ($string, $firstLineOffset=0, $maxLineLength=0)
 
 getName ()
 
- Public Member Functions inherited from Swift_Encoder_QpEncoder
 __construct (Swift_CharacterStream $charStream, Swift_StreamFilter $filter=null)
 
 charsetChanged ($charset)
 
 encodeString ($string, $firstLineOffset=0, $maxLineLength=0)
 

Protected Member Functions

 _encodeByteSequence (array $bytes, &$size)
 
- Protected Member Functions inherited from Swift_Encoder_QpEncoder
 _encodeByteSequence (array $bytes, &$size)
 
 _nextSequence ($size=4)
 
 _standardize ($string)
 

Static Private Attributes

static $_headerSafeMap = array()
 

Additional Inherited Members

- Protected Attributes inherited from Swift_Encoder_QpEncoder
 $_charStream
 
 $_filter
 
- Static Protected Attributes inherited from Swift_Encoder_QpEncoder
static $_qpMap
 
static $_safeMap = array()
 

Detailed Description

Definition at line 21 of file QpHeaderEncoder.php.

Constructor & Destructor Documentation

Swift_Mime_HeaderEncoder_QpHeaderEncoder::__construct ( Swift_CharacterStream  $charStream)

Creates a new QpHeaderEncoder for the given CharacterStream.

Parameters
Swift_CharacterStream$charStreamto use for reading characters

Definition at line 31 of file QpHeaderEncoder.php.

References __construct().

Here is the call graph for this function:

Member Function Documentation

Swift_Mime_HeaderEncoder_QpHeaderEncoder::_encodeByteSequence ( array  $bytes,
$size 
)
protected

Encode the given byte array into a verbatim QP form.

Parameters
int[]$bytes
Returns
string protected

Definition at line 79 of file QpHeaderEncoder.php.

References $ret.

Swift_Mime_HeaderEncoder_QpHeaderEncoder::encodeString (   $string,
  $firstLineOffset = 0,
  $maxLineLength = 0 
)

Takes an unencoded string and produces a Q encoded string from it.

Parameters
string$stringto encode
int$firstLineOffset,optional
int$maxLineLength,optional,0indicates the default of 76 chars
Returns
string

Implements Swift_Encoder.

Definition at line 63 of file QpHeaderEncoder.php.

Swift_Mime_HeaderEncoder_QpHeaderEncoder::getName ( )

Get the name of this encoding scheme. Returns the string 'Q'.

Returns
string

Implements Swift_Mime_HeaderEncoder.

Definition at line 51 of file QpHeaderEncoder.php.

Member Data Documentation

Swift_Mime_HeaderEncoder_QpHeaderEncoder::$_headerSafeMap = array()
staticprivate

Definition at line 25 of file QpHeaderEncoder.php.


The documentation for this class was generated from the following file: