Lines Matching refs:srclen

91                             const WCHAR *src, unsigned int srclen, int *used )
101 for (ret = 0; srclen; ret++, src++, srclen--)
106 if ((flags & WC_COMPOSITECHECK) && (srclen > 1) && (composed = compose(src)))
114 srclen--;
122 srclen--;
128 srclen--;
143 const WCHAR *src, unsigned int srclen,
148 int ret = srclen;
150 if (dstlen < srclen)
153 srclen = dstlen;
157 while (srclen >= 16)
177 srclen -= 16;
181 src += srclen;
182 dst += srclen;
183 switch(srclen)
207 const WCHAR *src, unsigned int srclen,
226 for (len = dstlen; srclen && len; dst++, len--, src++, srclen--)
230 if ((flags & WC_COMPOSITECHECK) && (srclen > 1) && (composed = compose(src)))
238 srclen--;
247 srclen--;
253 srclen--;
265 if (srclen) return -1; /* overflow */
292 const WCHAR *src, unsigned int srclen,
303 for (len = 0; srclen; srclen--, src++, len++)
313 for (len = 0; srclen; len++, srclen--, src++)
318 if ((flags & WC_COMPOSITECHECK) && (srclen > 1) && (composed = compose(src)))
328 srclen--;
337 srclen--;
343 srclen--;
361 const WCHAR *src, unsigned int srclen,
368 for (len = dstlen; srclen && len; len--, srclen--, src++)
379 if (srclen) return -1; /* overflow */
385 const WCHAR *src, unsigned int srclen,
399 for (len = dstlen; srclen && len; len--, srclen--, src++)
404 if ((flags & WC_COMPOSITECHECK) && (srclen > 1) && (composed = compose(src)))
413 srclen--;
422 srclen--;
428 srclen--;
449 if (srclen) return -1; /* overflow */
456 const WCHAR *src, int srclen,
463 if (!dstlen) return get_length_sbcs( &table->sbcs, flags, src, srclen, used );
464 return wcstombs_sbcs_slow( &table->sbcs, flags, src, srclen,
467 if (!dstlen) return srclen;
468 return wcstombs_sbcs( &table->sbcs, src, srclen, dst, dstlen );
472 if (!dstlen) return get_length_dbcs( &table->dbcs, flags, src, srclen, defchar, used );
474 return wcstombs_dbcs_slow( &table->dbcs, flags, src, srclen,
476 return wcstombs_dbcs( &table->dbcs, src, srclen, dst, dstlen );
482 int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen)
485 if( dstlen == 0) return srclen;
486 len = dstlen > srclen ? srclen : dstlen;
497 if( srclen > len) return -1;