Description
Located in File: /vendors/swiftMailer/classes/Swift/Encoder/QpEncoder.php
Handles Quoted Printable (QP) Encoding in Swift Mailer.
Possibly the most accurate RFC 2045 QP implementation found in PHP.
Classes extended from Swift_Encoder_QpEncoder:
- Swift_Mime_ContentEncoder_QpContentEncoder
- Handles Quoted Printable (QP) Transfer Encoding in Swift Mailer.
- Swift_Mime_HeaderEncoder_QpHeaderEncoder
- Handles Quoted Printable (Q) Header Encoding in Swift Mailer.
Method Detail
Summary:
string
encodeString
(
string $string, [
$firstLineOffset =
0], [
$maxLineLength =
0],
int $firstLineOffset,,
int $maxLineLength,)
Method charsetChanged (line 199)
void charsetChanged(
string
$charset)
Implementation of:
- Swift_Mime_CharsetObserver::charsetChanged()
- Notify this observer that the entity's charset has changed.
Updates the charset used.
Parameters
Info
Method encodeString (line 135)
string encodeString(
string
$string, [
$firstLineOffset = 0], [
$maxLineLength = 0], int
$firstLineOffset,, int
$maxLineLength,)
Overridden in child classes as:
- Swift_Mime_HeaderEncoder_QpHeaderEncoder::encodeString()
- Takes an unencoded string and produces a Q encoded string from it.
Implementation of:
- Swift_Encoder::encodeString()
- Encode a given string to produce an encoded string.
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.
Parameters
- string $string: to encode
- int $firstLineOffset,: optional
- int $maxLineLength,: optional, 0 indicates the default of 76 chars
- $firstLineOffset:
- $maxLineLength:
Info
Method _nextSequence (line 238)
int[] _nextSequence(
[int
$size = 4])
Get the next sequence of bytes to read from the char stream.
Parameters
- int $size: number of bytes to read
Info
Method _standardize (line 249)
string _standardize(
string
$string)
Make sure CRLF is correct and HT/SPACE are in valid places.
Parameters
Info