Description | uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables |
LibIconv support
This unit is Pascal interface to LibIconv library for charset translations. LibIconv is loaded dynamicly on-demand. If this library is not found in system, requested LibIconv function just return errorcode.
function SynaIconvOpen(const tocode, fromcode: Ansistring): iconv_t; |
function SynaIconvOpenTranslit(const tocode, fromcode: Ansistring): iconv_t; |
function SynaIconvOpenIgnore(const tocode, fromcode: Ansistring): iconv_t; |
function SynaIconv(cd: iconv_t; inbuf: AnsiString; var outbuf: AnsiString): integer; |
function SynaIconvClose(var cd: iconv_t): integer; |
function SynaIconvCtl(cd: iconv_t; request: integer; argument: argptr): integer; |
function IsIconvloaded: Boolean; |
function InitIconvInterface: Boolean; |
function DestroyIconvInterface: Boolean; |
size_t = Cardinal; |
iconv_t = Pointer; |
argptr = iconv_t; |
DLLIconvName = 'iconv.dll'; |
ICONV_TRIVIALP = 0; |
ICONV_GET_TRANSLITERATE = 1; |
ICONV_SET_TRANSLITERATE = 2; |
ICONV_GET_DISCARD_ILSEQ = 3; |
ICONV_SET_DISCARD_ILSEQ = 4; |
iconvLibHandle: TLibHandle = 0; |
function SynaIconvOpen(const tocode, fromcode: Ansistring): iconv_t; |
function SynaIconvOpenTranslit(const tocode, fromcode: Ansistring): iconv_t; |
function SynaIconvOpenIgnore(const tocode, fromcode: Ansistring): iconv_t; |
function SynaIconv(cd: iconv_t; inbuf: AnsiString; var outbuf: AnsiString): integer; |
function SynaIconvClose(var cd: iconv_t): integer; |
function SynaIconvCtl(cd: iconv_t; request: integer; argument: argptr): integer; |
function IsIconvloaded: Boolean; |
function InitIconvInterface: Boolean; |
function DestroyIconvInterface: Boolean; |
size_t = Cardinal; |
iconv_t = Pointer; |
argptr = iconv_t; |
DLLIconvName = 'iconv.dll'; |
ICONV_TRIVIALP = 0; |
ICONV_GET_TRANSLITERATE = 1; |
ICONV_SET_TRANSLITERATE = 2; |
ICONV_GET_DISCARD_ILSEQ = 3; |
ICONV_SET_DISCARD_ILSEQ = 4; |
iconvLibHandle: TLibHandle = 0; |