# Unit synaicnv

Description | uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables

## Description

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.

## uses

- synafpc
- Windows

## Overview

### Functions and Procedures

`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;`

### Types

`size_t = Cardinal;`
`iconv_t = Pointer;`
`argptr = iconv_t;`

### Constants

`DLLIconvName = 'iconv.dll';`
`ICONV_TRIVIALP = 0;`
`ICONV_GET_TRANSLITERATE = 1;`
`ICONV_SET_TRANSLITERATE = 2;`
`ICONV_GET_DISCARD_ILSEQ = 3;`
`ICONV_SET_DISCARD_ILSEQ = 4;`

### Variables

`iconvLibHandle: TLibHandle = 0;`

## Description

### Functions and Procedures

`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;`

### Types

`size_t = Cardinal;`

`iconv_t = Pointer;`

`argptr = iconv_t;`

### Constants

`DLLIconvName = 'iconv.dll';`

`ICONV_TRIVIALP = 0;`

`ICONV_GET_TRANSLITERATE = 1;`

`ICONV_SET_TRANSLITERATE = 2;`

`ICONV_GET_DISCARD_ILSEQ = 3;`

`ICONV_SET_DISCARD_ILSEQ = 4;`

### Variables

`iconvLibHandle: TLibHandle = 0;`

Generated by PasDoc 0.9.0 on 2012-04-23 21:38:52