Lines Matching refs:srcLength

67            int32_t srcLength,  in _strToWCS()  argument
89 if(srcLength == -1){ in _strToWCS()
90 srcLength = u_strlen(pSrc); in _strToWCS()
93 pSrcLimit = pSrc + srcLength; in _strToWCS()
108 int32_t newCapacity = 2 * srcLength; in _strToWCS()
190 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS()
234 int32_t srcLength, in u_strToWCS() argument
242 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToWCS()
251 if(srcLength == -1){ in u_strToWCS()
252 srcLength = u_strlen(src); in u_strToWCS()
254 if(0 < srcLength && srcLength <= destCapacity){ in u_strToWCS()
255 uprv_memcpy(dest,src,srcLength*U_SIZEOF_UCHAR); in u_strToWCS()
258 *pDestLength = srcLength; in u_strToWCS()
261 u_terminateUChars(dest,destCapacity,srcLength,pErrorCode); in u_strToWCS()
268 src, srcLength, pErrorCode); in u_strToWCS()
272 return _strToWCS(dest,destCapacity,pDestLength,src,srcLength, pErrorCode); in u_strToWCS()
285 int32_t srcLength, in _strFromWCS() argument
309 if(srcLength ==-1){ in _strFromWCS()
340 pSrcLimit = src + srcLength; in _strFromWCS()
346 while(nulLen<srcLength && pSrc[nulLen++]!=0){ in _strFromWCS()
378 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()
421 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()
488 int32_t srcLength, in u_strFromWCS() argument
497 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strFromWCS()
506 if(srcLength == -1){ in u_strFromWCS()
507 srcLength = u_strlen(src); in u_strFromWCS()
509 if(0 < srcLength && srcLength <= destCapacity){ in u_strFromWCS()
510 uprv_memcpy(dest,src,srcLength*U_SIZEOF_UCHAR); in u_strFromWCS()
513 *pDestLength = srcLength; in u_strFromWCS()
516 u_terminateUChars(dest,destCapacity,srcLength,pErrorCode); in u_strFromWCS()
523 (UChar32*)src, srcLength, pErrorCode); in u_strFromWCS()
527 return _strFromWCS(dest,destCapacity,pDestLength,src,srcLength,pErrorCode); in u_strFromWCS()