luat_soc_sdk_2024 V1.0
|
类型定义 | |
typedef void * | luat_iconv_t |
函数 | |
luat_iconv_t | luat_iconv_open (const char *to_code, const char *from_code) |
开启iconv转换流,分配内存 | |
size_t | luat_iconv_convert (luat_iconv_t cd, char **inbuf, size_t *in_bytes_left, char **outbuf, size_t *out_bytes_left) |
转换编码格式 | |
int | luat_iconv_close (luat_iconv_t cd) |
关闭iconv转换流,释放内存 | |
typedef void* luat_iconv_t |
在文件 luat_iconv.h 第 31 行定义.
int luat_iconv_close | ( | luat_iconv_t | cd | ) |
关闭iconv转换流,释放内存
cd | cionv转换流 |
size_t luat_iconv_convert | ( | luat_iconv_t | cd, |
char ** | inbuf, | ||
size_t * | in_bytes_left, | ||
char ** | outbuf, | ||
size_t * | out_bytes_left ) |
转换编码格式
cd | cionv转换流 |
inbuf | 输入缓冲区 |
in_bytes_left | 输入缓冲区长度 |
outbuf | 输出缓冲区 |
out_bytes_left | 输出缓冲区长度 |
luat_iconv_t luat_iconv_open | ( | const char * | to_code, |
const char * | from_code ) |
开启iconv转换流,分配内存
to_code | 目标编码格式,gb2312/ucs2/ucs2be/utf8 |
from_code | 源编码格式,gb2312/ucs2/ucs2be/utf8 |