Lines Matching refs:srcLength
69 int32_t srcLength, in _strToWCS() argument
91 if(srcLength == -1){ in _strToWCS()
92 srcLength = u_strlen(pSrc); in _strToWCS()
95 pSrcLimit = pSrc + srcLength; in _strToWCS()
110 int32_t newCapacity = 2 * srcLength; in _strToWCS()
192 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS()
236 int32_t srcLength, in u_strToWCS() argument
244 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToWCS()
253 if(srcLength == -1){ in u_strToWCS()
254 srcLength = u_strlen(src); in u_strToWCS()
256 if(0 < srcLength && srcLength <= destCapacity){ in u_strToWCS()
257 u_memcpy((UChar *)dest, src, srcLength); in u_strToWCS()
260 *pDestLength = srcLength; in u_strToWCS()
263 u_terminateUChars((UChar *)dest,destCapacity,srcLength,pErrorCode); in u_strToWCS()
270 src, srcLength, pErrorCode); in u_strToWCS()
274 return _strToWCS(dest,destCapacity,pDestLength,src,srcLength, pErrorCode); in u_strToWCS()
287 int32_t srcLength, in _strFromWCS() argument
311 if(srcLength ==-1){ in _strFromWCS()
342 pSrcLimit = src + srcLength; in _strFromWCS()
348 while(nulLen<srcLength && pSrc[nulLen++]!=0){ in _strFromWCS()
380 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()
423 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()
490 int32_t srcLength, in u_strFromWCS() argument
499 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strFromWCS()
508 if(srcLength == -1){ in u_strFromWCS()
509 srcLength = u_strlen((const UChar *)src); in u_strFromWCS()
511 if(0 < srcLength && srcLength <= destCapacity){ in u_strFromWCS()
512 u_memcpy(dest, (const UChar *)src, srcLength); in u_strFromWCS()
515 *pDestLength = srcLength; in u_strFromWCS()
518 u_terminateUChars(dest,destCapacity,srcLength,pErrorCode); in u_strFromWCS()
525 (UChar32*)src, srcLength, pErrorCode); in u_strFromWCS()
529 return _strFromWCS(dest,destCapacity,pDestLength,src,srcLength,pErrorCode); in u_strFromWCS()