Swift_Encoder
extends
Swift_Mime_CharsetObserver
in
Interface for all Encoder schemes.
Tags
Table of Contents
- charsetChanged() : mixed
- Notify this observer that the entity's charset has changed.
- encodeString() : string
- Encode a given string to produce an encoded string.
Methods
charsetChanged()
Notify this observer that the entity's charset has changed.
public
charsetChanged(string $charset) : mixed
Parameters
- $charset : string
Return values
mixed —encodeString()
Encode a given string to produce an encoded string.
public
encodeString(string $string, int $firstLineOffset, int $maxLineLength) : string
Parameters
- $string : string
- $firstLineOffset : int
-
if first line needs to be shorter
- $maxLineLength : int
-
- 0 indicates the default length for this encoding