Lines Matching refs:bufferSize
647 int32_t bufferSize = U_COL_SAFECLONE_BUFFERSIZE;
671 if (NULL != ucol_safeClone(someCollators[0], buffer[0], &bufferSize, NULL))
677 if (NULL != ucol_safeClone(someCollators[0], buffer[0], &bufferSize, &err) || err != U_MEMORY_ALLOCATION_ERROR)
686 log_err("FAIL: Cloned Collator failed to deal correctly with null bufferSize pointer\n");
692 bufferSize = 0;
693 if (NULL != ucol_safeClone(someCollators[0], buffer[0], &bufferSize, &err) ||
694 U_FAILURE(err) || bufferSize <= 0)
699 if (U_COL_SAFECLONE_BUFFERSIZE < bufferSize)
704 if (NULL == (col = ucol_safeClone(someCollators[0], buffer[0], &bufferSize, &err)) || U_FAILURE(err))
710 if (bufferSize > 1) {
711 --bufferSize;
713 if (NULL == (col = ucol_safeClone(someCollators[0], 0, &bufferSize, &err)) || err != U_SAFECLONE_ALLOCATED_WARNING)
719 bufferSize = U_COL_SAFECLONE_BUFFERSIZE;
723 if (NULL == (col = ucol_safeClone(someCollators[0], 0, &bufferSize, &err)) || err != U_SAFECLONE_ALLOCATED_WARNING)
731 if (NULL != ucol_safeClone(NULL, buffer[0], &bufferSize, &err) || err != U_ILLEGAL_ARGUMENT_ERROR)
740 bufferSize = U_COL_SAFECLONE_BUFFERSIZE;
741 someClonedCollators[0] = ucol_safeClone(col, buffer[0], &bufferSize, &err);
757 bufferSize = 1;
759 ucol_close(ucol_safeClone(someCollators[idx], buffer[idx], &bufferSize, &err));
765 bufferSize = U_COL_SAFECLONE_BUFFERSIZE;
767 someClonedCollators[idx] = ucol_safeClone(someCollators[idx], buffer[idx], &bufferSize, &err);