有哪位高手在研究cocos2d-x帮个忙

有谁在研究cocos2d-x帮个忙
是中文转化的问题,看了很多帖子,找到了如下的方法,但是人们怎么就不写注释呢?谁给解释下。

int GBKToUTF8(std::string & gbkStr, const char* toCode, const char* fromCode)  
{  
    iconv_t iconvH;  
    iconvH = iconv_open(fromCode, toCode);  
  
    if (iconvH == 0)  
  
    {  
        return -1;  
    }  
  
    const char* strChar = gbkStr.c_str();  
    const char** pin = &strChar;  
    size_t strLength = gbkStr.length();  
    char* outbuf = (char*) malloc(strLength*4);  
    char* pBuff = outbuf;  
  
    memset( outbuf, 0, strLength*4);  
    size_t outLength = strLength*4;  
  
    if (-1 == iconv(iconvH, pin, &strLength, &outbuf, &outLength))  
    {  
        iconv_close(iconvH);  
        return -1;  
    }  
  
    gbkStr = pBuff;  
    iconv_close(iconvH);  
  
    return 0;  
}  

里边的icon_open、icon_close,iconv(iconvH, pin, &strLength, &outbuf, &outLength)看不懂啊,谁解释下。
------解决方案--------------------
就是一个iconv的库,用来转换字符集编码啊
------解决方案--------------------
引用:
Quote: 引用:

就是一个iconv的库,用来转换字符集编码啊

你能说一下我说的那三个函数到底是什么作用吗,百度他们也都是这代码,但是都没说具体什么含义,求大神赐教啊!

读iconv的文档
------解决方案--------------------
引用:
Quote: 引用:

Quote: 引用:

Quote: 引用:

就是一个iconv的库,用来转换字符集编码啊

你能说一下我说的那三个函数到底是什么作用吗,百度他们也都是这代码,但是都没说具体什么含义,求大神赐教啊!

读iconv的文档

哪有这个文档啊,cocos2d文档里边就没有我说的那三个函数啊,能否说一下。
我了个去。。。。我说的明明是iconv
------解决方案--------------------
有哪位高手在研究cocos2d-x帮个忙lz可以向这位请教——http://blog.****.net/jackystudio/article/category/1591201