Lines Matching refs:cpCount
162 int32_t cpCount = 0;
180 cpCount++;
192 TestAccess(sa, ut, cpCount, cpMap);
203 TestAccess(sa, ut, cpCount, cpMap);
212 TestAccess(sa, ut, cpCount, cpMap);
213 TestCMR(sa, ut, cpCount, cpMap, cpMap);
221 TestAccess(sa, ut, cpCount, cpMap);
229 TestAccess(sa, ut, cpCount, cpMap);
230 TestCMR(sa, ut, cpCount, cpMap, cpMap);
240 TestAccess(sa, ut, cpCount, cpMap);
250 TestAccess(sa, ut, cpCount, cpMap);
265 for (j=0; j<cpCount ; j++) { // code point number
270 u8Map[cpCount].nativeIdx = u8Len; // position following the last char in utf-8 string.
276 TestAccess(sa, ut, cpCount, u8Map);
289 // cpCount number of code points in the test text.
296 void UTextTest::TestCMR(const UnicodeString &us, UText *ut, int cpCount, m *nativeMap, m *u16Map) {
323 case 3: srcLength = cpCount / 3;
329 case 3: srcIndex = cpCount - srcLength; break;
330 case 4: srcIndex = cpCount - srcLength - 1; break;
331 case 5: srcIndex = cpCount / 2; break;
333 if (srcIndex < 0 || srcIndex + srcLength > cpCount) {
349 case 5: destIndex = cpCount-1; break;
350 case 6: destIndex = cpCount; break;
352 if (destIndex<0 || destIndex>cpCount) {
550 void UTextTest::TestAccess(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) {
552 TestAccessNoClone(us, ut, cpCount, cpMap);
559 TestAccessNoClone(us, shallowClone, cpCount, cpMap);
572 TestAccessNoClone(us, deepClone, cpCount, cpMap);
583 void UTextTest::TestAccessNoClone(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) {
590 int64_t expectedLen = cpMap[cpCount].nativeIdx;
606 for (i=0; i<cpCount; i++) {
624 for (i=0; i<cpCount; i++) {
651 for (i=cpCount-1; i>=0; i--) {
685 for (i=cpCount-1; i>=0; i--) {
716 for (i=0; i<cpCount; i++) {
717 cpIndex = (cpIndex + 9973) % cpCount;
728 for (i=0; i<cpCount; i++) {
729 cpIndex = (cpIndex + 9973) % cpCount;
746 for (i=1; i<=cpCount; i++) {
757 for (i=2; i<cpCount; i+=2) {
767 i = cpMap[cpCount].nativeIdx;
769 for (i=cpCount; i>=0; i--) {
780 i = cpMap[cpCount].nativeIdx;
782 for (i=cpCount; i>=0; i-=3) {