Home | History | Annotate | Download | only in common

Lines Matching defs:subChars

262     if (cnv->subChars == (uint8_t *)cnv->subUChars) {
263 localConverter->subChars = (uint8_t *)localConverter->subUChars;
265 localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
266 if (localConverter->subChars == NULL) {
271 uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
281 if (allocatedConverter != NULL && allocatedConverter->subChars != (uint8_t *)allocatedConverter->subUChars) {
282 uprv_free(allocatedConverter->subChars);
376 if (converter->subChars != (uint8_t *)converter->subUChars) {
377 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 */ {