Lines Matching refs:subChars
272 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_safeClone()
273 localConverter->subChars = (uint8_t *)localConverter->subUChars; in ucnv_safeClone()
275 … localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone()
276 if (localConverter->subChars == NULL) { in ucnv_safeClone()
281 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone()
291 …if (allocatedConverter != NULL && allocatedConverter->subChars != (uint8_t *)allocatedConverter->s… in ucnv_safeClone()
292 uprv_free(allocatedConverter->subChars); in ucnv_safeClone()
381 if (converter->subChars != (uint8_t *)converter->subUChars) { in ucnv_close()
382 uprv_free(converter->subChars); in ucnv_close()
439 … uprv_memcpy (mySubChar, converter->subChars, converter->subCharLen); /*fills in the subchars */ in ucnv_getSubstChars()
460 uprv_memcpy (converter->subChars, mySubChar, len); /*copies the subchars */ in ucnv_setSubstChars()
482 uint8_t *subChars; in ucnv_setSubstString() local
502 subChars = (uint8_t *)chars; in ucnv_setSubstString()
519 subChars = (uint8_t *)s; in ucnv_setSubstString()
532 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_setSubstString()
534 cnv->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString()
535 if (cnv->subChars == NULL) { in ucnv_setSubstString()
536 cnv->subChars = (uint8_t *)cnv->subUChars; in ucnv_setSubstString()
540 uprv_memset(cnv->subChars, 0, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString()
548 uprv_memcpy(cnv->subChars, subChars, length8); in ucnv_setSubstString()
549 if (subChars == (uint8_t *)chars) { in ucnv_setSubstString()