Module eiconv

Function Index

chunk/2Convert a chunk, returns {done, ConvertedBytes} } | {more, Converted}.
close/1Close the encoder - dummy function, close will be done by the garbage collector.
conv/2Convert Input into the requested encoding.
conv/3Convert input.
convert/2Convert input FromEncoding to utf-8.
convert/3Convert input which is in FromEncoding to ToEncoding.
finalize/1Reset the cd structure, returns ok | {rest, LeftOverBytes}.
open/2Open a new encoder which can be used to convert text from FromCode into ToCode.

Function Details

chunk/2

chunk(Cd, Input) -> any()

Convert a chunk, returns {done, ConvertedBytes} } | {more, Converted}

close/1

close(Cd) -> any()

Close the encoder - dummy function, close will be done by the garbage collector.

conv/2

conv(Cd, Input) -> any()

Convert Input into the requested encoding.

conv/3

conv(Cd, Input, ChunkSize) -> any()

Convert input. The input will first be split into chunks of ChunkSize before being converted by the nif.

convert/2

convert(FromEncoding, Input) -> any()

Convert input FromEncoding to utf-8

convert/3

convert(FromEncoding, ToEncoding, Input) -> any()

Convert input which is in FromEncoding to ToEncoding.

finalize/1

finalize(Cd) -> any()

Reset the cd structure, returns ok | {rest, LeftOverBytes}

open/2

open(ToCode, FromCode) -> any()

Open a new encoder which can be used to convert text from FromCode into ToCode.


Generated by EDoc