Lines Matching refs:dst
38 static int get_decomposition( WCHAR src, WCHAR *dst, unsigned int dstlen )
44 *dst = src;
50 if ((res = get_decomposition( *ptr, dst, dstlen-1 ))) dst[res++] = ptr[1];
75 WCHAR *dst, unsigned int dstlen )
92 case 16: dst[15] = cp2uni[src[15]];
93 case 15: dst[14] = cp2uni[src[14]];
94 case 14: dst[13] = cp2uni[src[13]];
95 case 13: dst[12] = cp2uni[src[12]];
96 case 12: dst[11] = cp2uni[src[11]];
97 case 11: dst[10] = cp2uni[src[10]];
98 case 10: dst[9] = cp2uni[src[9]];
99 case 9: dst[8] = cp2uni[src[8]];
100 case 8: dst[7] = cp2uni[src[7]];
101 case 7: dst[6] = cp2uni[src[6]];
102 case 6: dst[5] = cp2uni[src[5]];
103 case 5: dst[4] = cp2uni[src[4]];
104 case 4: dst[3] = cp2uni[src[3]];
105 case 3: dst[2] = cp2uni[src[2]];
106 case 2: dst[1] = cp2uni[src[1]];
107 case 1: dst[0] = cp2uni[src[0]];
111 dst += 16;
120 WCHAR *dst, unsigned int dstlen )
135 int res = get_decomposition( cp2uni[*src], dst, len );
138 dst += res;
144 /* query necessary dst length for src string */
193 WCHAR *dst, unsigned int dstlen )
201 for (len = dstlen; srclen && len; len--, srclen--, src++, dst++)
208 *dst = cp2uni[(off << 8) + *src];
210 else *dst = cp2uni[*src];
220 WCHAR *dst, unsigned int dstlen )
256 if (!(res = get_decomposition( ch, dst, len ))) break;
257 dst += res;
265 /* return -1 on dst buffer overflow, -2 on invalid input char */
268 WCHAR *dst, int dstlen )
281 return mbstowcs_sbcs( &table->sbcs, flags, src, srclen, dst, dstlen );
283 return mbstowcs_sbcs_decompose( &table->sbcs, flags, src, srclen, dst, dstlen );
292 return mbstowcs_dbcs( &table->dbcs, src, srclen, dst, dstlen );
294 return mbstowcs_dbcs_decompose( &table->dbcs, src, srclen, dst, dstlen );
299 /* return -1 on dst buffer overflow */
300 int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen)
309 dst[i] = c;
311 dst[i] = c + 0xf000;