Home | History | Annotate | Download | only in common

Lines Matching defs:subChars

260     if (cnv->subChars == (uint8_t *)cnv->subUChars) {
261 localConverter->subChars = (uint8_t *)localConverter->subUChars;
263 localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
264 if (localConverter->subChars == NULL) {
269 uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
279 if (allocatedConverter != NULL && allocatedConverter->subChars != (uint8_t *)allocatedConverter->subUChars) {
280 uprv_free(allocatedConverter->subChars);
374 if (converter->subChars != (uint8_t *)converter->subUChars) {
375 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 == (uint8_t *)cnv->subUChars) {
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 */ {