FLICONV-API FLAM Character Conversion Interface

FLCICV.h
Go to the documentation of this file.
1
268#ifdef __cplusplus
269 extern "C" {
270#endif
271
272#ifndef INC_FLCICV_H
273#define INC_FLCICV_H
274
275#include <stddef.h>
276#include <inttypes.h>
277
279/**********************************************************************/
280
281#ifdef FICONV
282# define iconv_version fliconv_version
283# define iconv_about fliconv_about
284# define iconv_license fliconv_license
285# define iconv_zusmode fliconv_zusmode
286# define iconv_open fliconv_open
287# define iconv_close fliconv_close
288# define iconv fliconv
289# define iconvlist fliconv_list
290# define iconv_seterrno fliconv_seterrno
291# define iconv_geterrno fliconv_geterrno
292# define iconv_chkerrno fliconv_chkerrno
293# define iconv_strerror fliconv_strerror
294# define iconv_error_trace fliconv_error_trace
295# define iconv_expansion fliconv_expansion
296# define iconv_position fliconv_position
297# define ICONVLISTBYTES FLICONV_LISTBYTES
298# define ICONV_EINVAL FLICONV_EINVAL
299# define ICONV_ENOMEM FLICONV_ENOMEM
300# define ICONV_EILSEQ FLICONV_EILSEQ
301# define ICONV_ENOMSG FLICONV_ENOMSG
302# define ICONV_E2BIG FLICONV_E2BIG
303# define ICONV_REOPEN FLICONV_REOPEN
304# define ICONV_BOMCHG FLICONV_BOMCHG
305# define ICONV_UTFAIL FLICONV_UTFAIL
306# define ICONV_MAXEXP FLICONV_MAXEXP
307# define ICONV_LICVIL FLICONV_LICVIL
308# define ICONV_WITSPC FLICONV_WITSPC
309# define ICONV_IBMUCS FLICONV_IBMUCS
310# define ICONV_REREST FLICONV_REREST
311#endif
312
313/**********************************************************************/
314
320#define FLICONV_EINVAL 1
321#define FLICONV_ENOMEM 2
322#define FLICONV_EILSEQ 3
323#define FLICONV_ENOMSG 4
324#define FLICONV_E2BIG 5
325#define FLICONV_REOPEN 6
326#define FLICONV_BOMCHG 7
327#define FLICONV_UTFAIL 8
328#define FLICONV_MAXEXP 9
329#define FLICONV_LICVIL 10
330#define FLICONV_WITSPC 11
331#define FLICONV_IBMUCS 12
332#define FLICONV_REREST 13
334/**********************************************************************/
335
353#define FLICONV_LISTBYTES 8192
354
355/**********************************************************************/
356
369 typedef int (TfDoOneList)(unsigned int namescount, const char* const* names, void* data);
371/**********************************************************************/
372
483 extern const char* fliconv_version(void);
484
525 extern const char* fliconv_about(void);
526
575 extern const char* fliconv_license(void);
576
583 extern const char* fliconv_zusmode(void* pvHdl);
584
775 extern void fliconv_list(TfDoOneList* do_one, void* data);
776
969 extern void* fliconv_open( const char* pcTo_Code, const char* pcFrmCode);
970
1041 extern int fliconv_close(void* hdl);
1042
1177 extern size_t fliconv ( void* cd,
1178 char** inbuf,
1179 size_t* inbytesleft,
1180 char** outbuf,
1181 size_t* outbytesleft);
1182
1209 extern void fliconv_seterrno(const int err);
1210
1319 extern int fliconv_geterrno(void);
1320
1338 extern int fliconv_chkerrno(const int err, const int val);
1339
1447 extern const char* fliconv_strerror(int err);
1448
1465 extern const char* fliconv_error_trace(void);
1466
1483 extern const char* fliconv_error_msg(void* cd);
1484
1565 extern int fliconv_expansion(void* cd);
1566
1584 extern int64_t fliconv_position(void* cd);
1585
1587/**********************************************************************/
1588
1590#endif /* INC_FLCICV_H */
1591
1592#ifdef __cplusplus
1593 }
1594#endif
1597/**********************************************************************/
fliconv_close
int fliconv_close(void *hdl)
Close character conversion module.
fliconv_license
const char * fliconv_license(void)
Retrieves the license text.
fliconv_seterrno
void fliconv_seterrno(const int err)
Set error number.
fliconv_error_trace
const char * fliconv_error_trace(void)
Get error trace.
fliconv_about
const char * fliconv_about(void)
Retrieves about information.
fliconv_version
const char * fliconv_version(void)
Retrieves version information.
fliconv
size_t fliconv(void *cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
Convert a data block.
fliconv_strerror
const char * fliconv_strerror(int err)
Get error message.
fliconv_position
int64_t fliconv_position(void *cd)
Get position.
fliconv_expansion
int fliconv_expansion(void *cd)
Get expansion factor.
fliconv_error_msg
const char * fliconv_error_msg(void *cd)
Get error message.
fliconv_chkerrno
int fliconv_chkerrno(const int err, const int val)
Check error number.
fliconv_list
void fliconv_list(TfDoOneList *do_one, void *data)
fliconv_open
void * fliconv_open(const char *pcTo_Code, const char *pcFrmCode)
Open character conversion module.
fliconv_zusmode
const char * fliconv_zusmode(void *pvHdl)
Returns string describing use of IBM Unicode Services.
fliconv_geterrno
int fliconv_geterrno(void)
Get error number.
TfDoOneList
int() TfDoOneList(unsigned int namescount, const char *const *names, void *data)
Typedef of function pointer for do_one call back function.
Definition: FLCICV.h:369