Home | History | Annotate | Download | only in common

Lines Matching refs:subChars

272     if (cnv->subChars == (uint8_t *)cnv->subUChars) {
273 localConverter->subChars = (uint8_t *)localConverter->subUChars;
275 localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
276 if (localConverter->subChars == NULL) {
281 uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
291 if (allocatedConverter != NULL && allocatedConverter->subChars != (uint8_t *)allocatedConverter->subUChars) {
292 uprv_free(allocatedConverter->subChars);
381 if (converter->subChars != (uint8_t *)converter->subUChars) {
382 uprv_free(converter->subChars);
433 if (*len < converter->subCharLen) /*not enough space in subChars */
439 uprv_memcpy (mySubChar, converter->subChars, converter->subCharLen); /*fills in the subchars */
460 uprv_memcpy (converter->subChars, mySubChar, len); /*copies the subchars */
482 uint8_t *subChars;
502 subChars = (uint8_t *)chars;
519 subChars = (uint8_t *)s;
528 * UConverter or allocate a subChars buffer.
532 if (cnv->subChars == (uint8_t *)cnv->subUChars) {
534 cnv->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
535 if (cnv->subChars == NULL) {
536 cnv->subChars = (uint8_t *)cnv->subUChars;
540 uprv_memset(cnv->subChars, 0, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
544 /* Copy the substitution string into the UConverter or its subChars buffer. */
548 uprv_memcpy(cnv->subChars, subChars, length8);
549 if (subChars == (uint8_t *)chars) {
551 } else /* subChars == s */ {