Lines Matching refs:localConverter
156 UConverter *localConverter, *allocatedConverter; in ucnv_safeClone() local
246 localConverter = allocatedConverter = (UConverter *) uprv_malloc (bufferSizeNeeded); in ucnv_safeClone()
248 if(localConverter == NULL) { in ucnv_safeClone()
259 localConverter = (UConverter*) stackBuffer; in ucnv_safeClone()
263 uprv_memset(localConverter, 0, bufferSizeNeeded); in ucnv_safeClone()
266 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); in ucnv_safeClone()
267 localConverter->isCopyLocal = localConverter->isExtraLocal = FALSE; in ucnv_safeClone()
271 localConverter->subChars = (uint8_t *)localConverter->subUChars; in ucnv_safeClone()
273 … localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone()
274 if (localConverter->subChars == NULL) { in ucnv_safeClone()
279 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone()
285 localConverter = cnv->sharedData->impl->safeClone(cnv, localConverter, pBufferSize, status); in ucnv_safeClone()
288 if(localConverter==NULL || U_FAILURE(*status)) { in ucnv_safeClone()
307 if(localConverter == (UConverter*)stackBuffer) { in ucnv_safeClone()
309 localConverter->isCopyLocal = TRUE; in ucnv_safeClone()
313 toUArgs.converter = fromUArgs.converter = localConverter; in ucnv_safeClone()
319 UTRACE_EXIT_PTR_STATUS(localConverter, *status); in ucnv_safeClone()
320 return localConverter; in ucnv_safeClone()