Home | History | Annotate | Download | only in common

Lines Matching refs:subChars

270     if (cnv->subChars == (uint8_t *)cnv->subUChars) {
271 localConverter->subChars = (uint8_t *)localConverter->subUChars;
273 localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
274 if (localConverter->subChars == NULL) {
279 uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
289 if (allocatedConverter != NULL && allocatedConverter->subChars != (uint8_t *)allocatedConverter->subUChars) {
290 uprv_free(allocatedConverter->subChars);
379 if (converter->subChars != (uint8_t *)converter->subUChars) {
380 uprv_free(converter->subChars);
431 if (*len < converter->subCharLen) /*not enough space in subChars */
437 uprv_memcpy (mySubChar, converter->subChars, converter->subCharLen); /*fills in the subchars */
458 uprv_memcpy (converter->subChars, mySubChar, len); /*copies the subchars */
480 uint8_t *subChars;
500 subChars = (uint8_t *)chars;
517 subChars = (uint8_t *)s;
526 * UConverter or allocate a subChars buffer.
530 if (cnv->subChars
532 cnv->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
533 if (cnv->subChars == NULL) {
534 cnv->subChars = (uint8_t *)cnv->subUChars;
538 uprv_memset(cnv->subChars, 0, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
542 /* Copy the substitution string into the UConverter or its subChars buffer. */
546 uprv_memcpy(cnv->subChars, subChars, length8);
547 if (subChars == (uint8_t *)chars) {
549 } else /* subChars == s */ {