Lines Matching refs:nulLen
155 int32_t nulLen = 0; in _strToWCS() local
166 retVal = uprv_mbstowcs(pIntTarget,(tempBuf+nulLen),remaining); in _strToWCS()
181 if(nulLen!=count){ /*there are embedded nulls*/ in _strToWCS()
190 while(tempBuf[nulLen++] != 0){ in _strToWCS()
192 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS()
197 if(nulLen>=(count)){ in _strToWCS()
345 int32_t nulLen = 0; in _strFromWCS() local
348 while(nulLen<srcLength && pSrc[nulLen++]!=0){ in _strFromWCS()
351 if((pSrc+nulLen) < pSrcLimit){ in _strFromWCS()
353 if(remaining < (nulLen * MB_CUR_MAX)){ in _strFromWCS()
359 … _BUFFER_CAPACITY_MULTIPLIER*cStackCap+(nulLen*MB_CUR_MAX),len,sizeof(char)); in _strFromWCS()
379 pSrc += nulLen; /* skip past the null */ in _strFromWCS()
380 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()
389 if(nulLen >= _STACK_BUFFER_CAPACITY){ in _strFromWCS()
392 pWStack =(wchar_t*) uprv_malloc(sizeof(wchar_t) * (nulLen + 1)); in _strFromWCS()
398 if(nulLen>0){ in _strFromWCS()
400 uprv_memcpy(pWStack, pSrc, (size_t)nulLen*sizeof(wchar_t)); in _strFromWCS()
404 pWStack[nulLen] =0 ; in _strFromWCS()
406 if(remaining < (nulLen * MB_CUR_MAX)){ in _strFromWCS()
412 cStackCap+(nulLen*MB_CUR_MAX),len,sizeof(char)); in _strFromWCS()
422 pSrc += nulLen; in _strFromWCS()
423 srcLength-=nulLen; /* decrement the srcLength */ in _strFromWCS()