Lines Matching refs:subChars
270 if (cnv->subChars == (uint8_t *)cnv->subUChars) { 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()
289 …if (allocatedConverter != NULL && allocatedConverter->subChars != (uint8_t *)allocatedConverter->s… in ucnv_safeClone()
290 uprv_free(allocatedConverter->subChars); in ucnv_safeClone()
384 if (converter->subChars != (uint8_t *)converter->subUChars) { in ucnv_close()
385 uprv_free(converter->subChars); in ucnv_close()
447 … uprv_memcpy (mySubChar, converter->subChars, converter->subCharLen); /*fills in the subchars */ in ucnv_getSubstChars()
468 uprv_memcpy (converter->subChars, mySubChar, len); /*copies the subchars */ in ucnv_setSubstChars()
490 uint8_t *subChars; in ucnv_setSubstString() local
510 subChars = (uint8_t *)chars; in ucnv_setSubstString()
527 subChars = (uint8_t *)s; in ucnv_setSubstString()
540 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_setSubstString()
542 cnv->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString()
543 if (cnv->subChars == NULL) { in ucnv_setSubstString()
544 cnv->subChars = (uint8_t *)cnv->subUChars; in ucnv_setSubstString()
548 uprv_memset(cnv->subChars, 0, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString()
556 uprv_memcpy(cnv->subChars, subChars, length8); in ucnv_setSubstString()
557 if (subChars == (uint8_t *)chars) { in ucnv_setSubstString()