Lines Matching refs:destIdx
1377 int32_t destIdx = 0; in appendReplacement() local
1402 appendToBuf(regexp->fText[i], &destIdx, dest, capacity); in appendReplacement()
1406 destIdx += utext_extract(m->fInputText, m->fLastMatchEnd, m->fMatchStart, in appendReplacement()
1407 … dest==NULL?NULL:&dest[destIdx], REMAINING_CAPACITY(destIdx, capacity), in appendReplacement()
1410 U_ASSERT(destIdx >= 0); in appendReplacement()
1420 appendToBuf(c, &destIdx, dest, capacity); in appendReplacement()
1445 appendToBuf((UChar)escapedChar, &destIdx, dest, capacity); in appendReplacement()
1447 appendToBuf(U16_LEAD(escapedChar), &destIdx, dest, capacity); in appendReplacement()
1448 appendToBuf(U16_TRAIL(escapedChar), &destIdx, dest, capacity); in appendReplacement()
1457 appendToBuf(c, &destIdx, dest, capacity); in appendReplacement()
1529 destIdx += uregex_group((URegularExpression*)regexp, groupNum, in appendReplacement()
1530 … dest==NULL?NULL:&dest[destIdx], REMAINING_CAPACITY(destIdx, capacity), status); in appendReplacement()
1549 if (destIdx < capacity) { in appendReplacement()
1550 dest[destIdx] = 0; in appendReplacement()
1552 if (destIdx == *destCapacity) { in appendReplacement()
1562 if (destIdx > 0 && *destCapacity > 0) { in appendReplacement()
1563 if (destIdx < capacity) { in appendReplacement()
1564 *destBuf += destIdx; in appendReplacement()
1565 *destCapacity -= destIdx; in appendReplacement()
1579 return destIdx; in appendReplacement()
1645 int32_t destIdx = 0; in appendTail() local
1662 U_ASSERT(destIdx >= 0); in appendTail()
1673 if (destIdx < destCap) { in appendTail()
1674 dest[destIdx] = c; in appendTail()
1680 destIdx += (regexp->fTextLength - srcIdx); in appendTail()
1685 destIdx++; in appendTail()
1703 destIdx = utext_extract(m->fInputText, srcIdx, m->fInputLength, dest, destCap, status); in appendTail()
1710 if (destIdx < destCap) { in appendTail()
1711 dest[destIdx] = 0; in appendTail()
1712 } else if (destIdx == destCap) { in appendTail()
1722 if (destIdx < destCap) { in appendTail()
1723 *destBuf += destIdx; in appendTail()
1724 *destCapacity -= destIdx; in appendTail()
1734 return destIdx; in appendTail()
1828 int32_t destIdx = 0; // Next available position in destBuf; in split() local
1844 destIdx = (int32_t)(destFields[i] - destFields[0]); in split()
1847 destFields[i] = &destBuf[destIdx]; in split()
1848 destIdx += 1 + utext_extract(inputText, nextOutputStringStart, inputLen, in split()
1849 … &destBuf[destIdx], REMAINING_CAPACITY(destIdx, destCapacity), status); in split()
1857 destFields[i] = &destBuf[destIdx]; in split()
1859 … destIdx += 1 + utext_extract(inputText, nextOutputStringStart, regexp->fMatcher->fMatchStart, in split()
1860 … &destBuf[destIdx], REMAINING_CAPACITY(destIdx, destCapacity), &tStatus); in split()
1879 destFields[i] = &destBuf[destIdx]; in split()
1884 REMAINING_CAPACITY(destIdx, destCapacity), in split()
1886 destIdx += t + 1; // Record the space used in the output string buffer. in split()
1898 if (destIdx < destCapacity) { in split()
1899 destBuf[destIdx] = 0; in split()
1904 if (destIdx < destCapacity) { in split()
1905 destFields[i] = destBuf + destIdx; in split()
1907 ++destIdx; in split()
1916 destFields[i] = &destBuf[destIdx]; in split()
1917 destIdx += 1 + utext_extract(inputText, nextOutputStringStart, inputLen, in split()
1918 … &destBuf[destIdx], REMAINING_CAPACITY(destIdx, destCapacity), status); in split()
1930 *requiredCapacity = destIdx; in split()
1932 if (destIdx > destCapacity) { in split()