Home | History | Annotate | Download | only in common

Lines Matching defs: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);
384 if (converter->subChars != (uint8_t *)converter->subUChars) {
385 uprv_free(converter->subChars);
441 if (*len < converter->subCharLen) /*not enough space in subChars */
447 uprv_memcpy (mySubChar, converter->subChars, converter->subCharLen); /*fills in the subchars */
468 uprv_memcpy (converter->subChars, mySubChar, len); /*copies the subchars */
490 uint8_t *subChars;
510 subChars = (uint8_t *)chars;
527 subChars = (uint8_t *)s;
536 * UConverter or allocate a subChars buffer.
540 if (cnv->subChars == (uint8_t *)cnv->subUChars) {
542 cnv->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
543 if (cnv->subChars == NULL) {
544 cnv->subChars = (uint8_t *)cnv->subUChars;
548 uprv_memset(cnv->subChars, 0, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR);
552 /* Copy the substitution string into the UConverter or its subChars buffer. */
556 uprv_memcpy(cnv->subChars, subChars, length8);
557 if (subChars == (uint8_t *)chars) {
559 } else /* subChars == s */ {