mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-21 02:15:55 +08:00
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/**************************************************************************
|
|
* Copyright (C), AirM2M Tech. Co., Ltd.
|
|
*
|
|
* Name: iconv.h
|
|
* Author: liweiqiang
|
|
* Version: V0.1
|
|
* Date: 2013/7/15
|
|
*
|
|
* Description:
|
|
* ×Ö·û±àÂëת»»
|
|
**************************************************************************/
|
|
|
|
#ifndef __ICONV_H__
|
|
#define __ICONV_H__
|
|
|
|
// #include "stddef.h"
|
|
|
|
/* Identifier for conversion method from one codeset to another. */
|
|
typedef void *iconv_t;
|
|
|
|
/* Allocate descriptor for code conversion from codeset FROMCODE to
|
|
codeset TOCODE. */
|
|
extern iconv_t iconv_open (const char *to_code, const char *from_code);
|
|
|
|
/* Convert 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. */
|
|
extern size_t iconv_convert (iconv_t __cd, char ** __inbuf,
|
|
size_t * __inbytesleft,
|
|
char ** __outbuf,
|
|
size_t * __outbytesleft);
|
|
|
|
/* Free resources allocated for descriptor CD for code conversion. */
|
|
extern int iconv_close (iconv_t cd);
|
|
|
|
#endif/*__ICONV_H__*/ |