Lines Matching refs:destCapacity
636 int32_t destCapacity, in uregex_group() argument
642 if (destCapacity < 0 || (destCapacity > 0 && dest == NULL)) { in uregex_group()
647 if (destCapacity == 0 || regexp->fText != NULL) { in uregex_group()
665 if (copyLength < destCapacity) { in uregex_group()
667 } else if (copyLength == destCapacity) { in uregex_group()
670 copyLength = destCapacity; in uregex_group()
683 …_t result = utext_extract(groupText, 0, utext_nativeLength(groupText), dest, destCapacity, status); in uregex_group()
1158 int32_t destCapacity, in uregex_replaceAll() argument
1165 (destBuf == NULL && destCapacity > 0) || in uregex_replaceAll()
1166 destCapacity < 0) { in uregex_replaceAll()
1183 &destBuf, &destCapacity, status); in uregex_replaceAll()
1185 len += uregex_appendTail(regexp2, &destBuf, &destCapacity, status); in uregex_replaceAll()
1232 int32_t destCapacity, in uregex_replaceFirst() argument
1239 (destBuf == NULL && destCapacity > 0) || in uregex_replaceFirst()
1240 destCapacity < 0) { in uregex_replaceFirst()
1251 &destBuf, &destCapacity, status); in uregex_replaceFirst()
1253 len += uregex_appendTail(regexp2, &destBuf, &destCapacity, status); in uregex_replaceFirst()
1300 int32_t *destCapacity,
1305 int32_t *destCapacity,
1310 int32_t destCapacity,
1344 int32_t *destCapacity, in appendReplacement() argument
1351 if (*status == U_BUFFER_OVERFLOW_ERROR && destCapacity != NULL && *destCapacity == 0) { in appendReplacement()
1363 destCapacity == NULL || destBuf == NULL || in appendReplacement()
1364 (*destBuf == NULL && *destCapacity > 0) || in appendReplacement()
1365 *destCapacity < 0) { in appendReplacement()
1377 int32_t capacity = *destCapacity; in appendReplacement()
1519 } else if (destIdx == *destCapacity) { in appendReplacement()
1528 if (destIdx > 0 && *destCapacity > 0) { in appendReplacement()
1531 *destCapacity -= destIdx; in appendReplacement()
1534 *destCapacity = 0; in appendReplacement()
1556 int32_t *destCapacity, in uregex_appendReplacement() argument
1561 regexp, replacementText, replacementLength,destBuf, destCapacity, status); in uregex_appendReplacement()
1584 int32_t *destCapacity, in appendTail() argument
1592 if (*status == U_BUFFER_OVERFLOW_ERROR && destCapacity != NULL && *destCapacity == 0) { in appendTail()
1601 if (destCapacity == NULL || destBuf == NULL || in appendTail()
1602 (*destBuf == NULL && *destCapacity > 0) || in appendTail()
1603 *destCapacity < 0) in appendTail()
1612 int32_t destCap = *destCapacity; in appendTail()
1687 *destCapacity -= destIdx; in appendTail()
1690 *destCapacity = 0; in appendTail()
1707 int32_t *destCapacity, in uregex_appendTail() argument
1710 return RegexCImpl::appendTail(regexp, destBuf, destCapacity, status); in uregex_appendTail()
1736 int32_t destCapacity, // Total capacity of dest buffer
1748 if (di < destCapacity) {
1756 if (di<destCapacity) {
1771 int32_t destCapacity, in split() argument
1812 … &destBuf[destIdx], REMAINING_CAPACITY(destIdx, destCapacity), status); in split()
1823 … &destBuf[destIdx], REMAINING_CAPACITY(destIdx, destCapacity), &tStatus); in split()
1847 REMAINING_CAPACITY(destIdx, destCapacity), in split()
1861 if (destIdx < destCapacity) { in split()
1867 if (destIdx < destCapacity) { in split()
1881 … &destBuf[destIdx], REMAINING_CAPACITY(destIdx, destCapacity), status); in split()
1895 if (destIdx > destCapacity) { in split()
1907 int32_t destCapacity, in uregex_split() argument
1916 if ((destBuf == NULL && destCapacity > 0) || in uregex_split()
1917 destCapacity < 0 || in uregex_split()
1924 …return RegexCImpl::split(regexp, destBuf, destCapacity, requiredCapacity, destFields, destFieldsCa… in uregex_split()