Lines Matching refs:srclen

56                                             const unsigned char *src, unsigned int srclen )
62 while (srclen)
66 srclen--;
68 return srclen;
74 const unsigned char *src, unsigned int srclen,
78 int ret = srclen;
80 if (dstlen < srclen)
83 srclen = dstlen;
89 switch(srclen)
110 if (srclen < 16) return ret;
113 srclen -= 16;
119 const unsigned char *src, unsigned int srclen,
128 for (len = 0; srclen; srclen--, src++)
133 for (len = dstlen; srclen && len; srclen--, src++)
140 if (srclen) return -1; /* overflow */
146 const unsigned char *src, unsigned int srclen )
151 for (len = 0; srclen; srclen--, src++, len++)
155 if (!--srclen) break; /* partial char, ignore it */
164 const unsigned char *src, unsigned int srclen )
171 while (srclen)
176 if (srclen == 1) break; /* partial char, error */
180 srclen--;
184 srclen--;
186 return srclen;
192 const unsigned char *src, unsigned int srclen,
199 if (!dstlen) return get_length_dbcs( table, src, srclen );
201 for (len = dstlen; srclen && len; len--, srclen--, src++, dst++)
206 if (!--srclen) break; /* partial char, ignore it */
212 if (srclen) return -1; /* overflow */
219 const unsigned char *src, unsigned int srclen,
231 for (len = 0; srclen; srclen--, src++)
236 if (!--srclen) break; /* partial char, ignore it */
246 for (len = dstlen; srclen && len; srclen--, src++)
251 if (!--srclen) break; /* partial char, ignore it */
260 if (srclen) return -1; /* overflow */
267 const char *s, int srclen,
276 if (check_invalid_chars_sbcs( &table->sbcs, flags, src, srclen )) return -2;
280 if (!dstlen) return srclen;
281 return mbstowcs_sbcs( &table->sbcs, flags, src, srclen, dst, dstlen );
283 return mbstowcs_sbcs_decompose( &table->sbcs, flags, src, srclen, dst, dstlen );
289 if (check_invalid_chars_dbcs( &table->dbcs, src, srclen )) return -2;
292 return mbstowcs_dbcs( &table->dbcs, src, srclen, dst, dstlen );
294 return mbstowcs_dbcs_decompose( &table->dbcs, src, srclen, dst, dstlen );
300 int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen)
303 if( dstlen == 0) return srclen;
304 len = dstlen > srclen ? srclen : dstlen;
313 if( srclen > len) return -1;