Lines Matching refs:nulLen
153 int32_t nulLen = 0; in _strToWCS() local
164 retVal = uprv_mbstowcs(pIntTarget,(tempBuf+nulLen),remaining); in _strToWCS()
179 if(nulLen!=count){ /*there are embedded nulls*/ in _strToWCS()
188 while(tempBuf[nulLen++] != 0){ in _strToWCS()
190 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS()
195 if(nulLen>=(count)){ in _strToWCS()
343 register int32_t nulLen = 0; in _strFromWCS() local
346 while(nulLen<srcLength && pSrc[nulLen++]!=0){ in _strFromWCS()
349 if((pSrc+nulLen) < pSrcLimit){ in _strFromWCS()
351 if(remaining < (nulLen * MB_CUR_MAX)){ in _strFromWCS()
357 … _BUFFER_CAPACITY_MULTIPLIER*cStackCap+(nulLen*MB_CUR_MAX),len,sizeof(char)); in _strFromWCS()
377 pSrc += nulLen; /* skip past the null */ in _strFromWCS()
378 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()
387 if(nulLen >= _STACK_BUFFER_CAPACITY){ in _strFromWCS()
390 pWStack =(wchar_t*) uprv_malloc(sizeof(wchar_t) * (nulLen + 1)); in _strFromWCS()
396 if(nulLen>0){ in _strFromWCS()
398 uprv_memcpy(pWStack,pSrc,nulLen*sizeof(wchar_t)); in _strFromWCS()
402 pWStack[nulLen] =0 ; in _strFromWCS()
404 if(remaining < (nulLen * MB_CUR_MAX)){ in _strFromWCS()
410 cStackCap+(nulLen*MB_CUR_MAX),len,sizeof(char)); in _strFromWCS()
420 pSrc += nulLen; in _strFromWCS()
421 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()