License
Standards
POSIX.1-2001, POSIX.1-2008
D binding for the POSIX iconv library.
Defines external functions required to use iconv codeset conversion function.
iconv_open(3) Allocates the descriptor for code conversion iconv(3) Performs the conversion iconvctl(3) Control iconv behavior iconv_close(3) Deallocates allocated resources
iconv_t iconv_open(const scope char * tocode, const scope char * fromcode) extern(C) nothrow @nogcAllocate descriptor for code conversion from codeset FROMCODE to codeset TOCODE.size_t iconv(iconv_t cd, const scope char * * inbuf,
size_t * inbytesleft,
char * * outbuf,
size_t * outbytesleft) extern(C) nothrow @nogcConvert at most *INBYTESLEFT bytes from *INBUF according to the code conversion algorithm specified by CD and place up to *OUTBYTESLEFT bytes in buffer at *OUTBUF.int iconvctl(iconv_t cd, int request, void * argument) extern(C) nothrow @nogciconvctl queries or adjusts the behavior of the iconv function, when invoked with the specified conversion descriptor, depending on the request value.int iconv_close(iconv_t cd) extern(C) nothrow @nogcFree resources allocated for descriptor CD for code conversion.