Translate input, in the given InputEncoding, into output, in
the given OutputEncoding.
stopOnError causes encoding to stop when an encoding
error is detected in input, if true. Otherwise, U+FFFD
replacement characters are inserted for each detected error.
Translate
input
, in the givenInputEncoding
, intooutput
, in the givenOutputEncoding
.stopOnError
causes encoding to stop when an encoding error is detected ininput
, iftrue
. Otherwise, U+FFFD replacement characters are inserted for each detected error.Declaration
func
transcode
<
Input
:
GeneratorType
,
Output
:
SinkType
,
InputEncoding
:
UnicodeCodecType
,
OutputEncoding
:
UnicodeCodecType
where
Input
.
Element
==
Input
.
Element
,
Output
.
Element
==
Output
.
Element
>
(
inputEncoding
:
InputEncoding
.
Type
,
outputEncoding
:
OutputEncoding
.
Type
,
input
:
Input
,
inout
output
:
Output
, #
stopOnError
:
Bool
) -
>
Bool