QpContentEncoder
in package
implements
ContentEncoderInterface
FinalYes
Tags
Table of Contents
Interfaces
Methods
- encodeByteStream() : iterable<string|int, mixed>
- Encodes the stream to a Generator.
- encodeString() : string
- Encode a given string to produce an encoded string.
- getName() : string
- Gets the MIME name of this content encoding scheme.
- standardize() : string
- Make sure CRLF is correct and HT/SPACE are in valid places.
Methods
encodeByteStream()
Encodes the stream to a Generator.
public
encodeByteStream(mixed $stream[, int $maxLineLength = 0 ]) : iterable<string|int, mixed>
Parameters
- $stream : mixed
- $maxLineLength : int = 0
Return values
iterable<string|int, mixed>encodeString()
Encode a given string to produce an encoded string.
public
encodeString(string $string[, string|null $charset = 'utf-8' ][, int $firstLineOffset = 0 ][, int $maxLineLength = 0 ]) : string
Parameters
- $string : string
- $charset : string|null = 'utf-8'
- $firstLineOffset : int = 0
-
if first line needs to be shorter
- $maxLineLength : int = 0
-
- 0 indicates the default length for this encoding
Return values
stringgetName()
Gets the MIME name of this content encoding scheme.
public
getName() : string
Return values
stringstandardize()
Make sure CRLF is correct and HT/SPACE are in valid places.
private
standardize(string $string) : string
Parameters
- $string : string