Lines Matching defs:utf16
270 char *wma_utf16toutf8(unsigned char *utf16, int len);
334 unsigned char *utf16;
337 utf16=(unsigned char*)malloc(len);
338 if(!utf16)
341 ret = read(fd, utf16, len);
345 out = wma_utf16toutf8(utf16,len);
347 free(utf16);
836 * convert utf16 string to utf8. This is a bit naive, but...
847 * @param utf16 utf-16 to convert
850 char *wma_utf16toutf8(unsigned char *utf16, int len) {
852 unsigned char *src=utf16;
867 while((src+2) <= utf16+len) {
871 if(src+2 > utf16+len) {