Lines Matching refs:cpCount
168 int32_t cpCount = 0; in TestString() local
186 cpCount++; in TestString()
198 TestAccess(sa, ut, cpCount, cpMap); in TestString()
209 TestAccess(sa, ut, cpCount, cpMap); in TestString()
218 TestAccess(sa, ut, cpCount, cpMap); in TestString()
219 TestCMR(sa, ut, cpCount, cpMap, cpMap); in TestString()
227 TestAccess(sa, ut, cpCount, cpMap); in TestString()
235 TestAccess(sa, ut, cpCount, cpMap); in TestString()
236 TestCMR(sa, ut, cpCount, cpMap, cpMap); in TestString()
246 TestAccess(sa, ut, cpCount, cpMap); in TestString()
256 TestAccess(sa, ut, cpCount, cpMap); in TestString()
271 for (j=0; j<cpCount ; j++) { // code point number in TestString()
276 u8Map[cpCount].nativeIdx = u8Len; // position following the last char in utf-8 string. in TestString()
282 TestAccess(sa, ut, cpCount, u8Map); in TestString()
302 void UTextTest::TestCMR(const UnicodeString &us, UText *ut, int cpCount, m *nativeMap, m *u16Map) { in TestCMR() argument
329 case 3: srcLength = cpCount / 3; in TestCMR()
335 case 3: srcIndex = cpCount - srcLength; break; in TestCMR()
336 case 4: srcIndex = cpCount - srcLength - 1; break; in TestCMR()
337 case 5: srcIndex = cpCount / 2; break; in TestCMR()
339 if (srcIndex < 0 || srcIndex + srcLength > cpCount) { in TestCMR()
355 case 5: destIndex = cpCount-1; break; in TestCMR()
356 case 6: destIndex = cpCount; break; in TestCMR()
358 if (destIndex<0 || destIndex>cpCount) { in TestCMR()
556 void UTextTest::TestAccess(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) { in TestAccess() argument
558 TestAccessNoClone(us, ut, cpCount, cpMap); in TestAccess()
565 TestAccessNoClone(us, shallowClone, cpCount, cpMap); in TestAccess()
578 TestAccessNoClone(us, deepClone, cpCount, cpMap); in TestAccess()
589 void UTextTest::TestAccessNoClone(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) { in TestAccessNoClone() argument
596 int64_t expectedLen = cpMap[cpCount].nativeIdx; in TestAccessNoClone()
612 for (i=0; i<cpCount; i++) { in TestAccessNoClone()
630 for (i=0; i<cpCount; i++) { in TestAccessNoClone()
657 for (i=cpCount-1; i>=0; i--) { in TestAccessNoClone()
691 for (i=cpCount-1; i>=0; i--) { in TestAccessNoClone()
722 for (i=0; i<cpCount; i++) { in TestAccessNoClone()
723 cpIndex = (cpIndex + 9973) % cpCount; in TestAccessNoClone()
734 for (i=0; i<cpCount; i++) { in TestAccessNoClone()
735 cpIndex = (cpIndex + 9973) % cpCount; in TestAccessNoClone()
752 for (i=1; i<=cpCount; i++) { in TestAccessNoClone()
763 for (i=2; i<cpCount; i+=2) { in TestAccessNoClone()
773 i = cpMap[cpCount].nativeIdx; in TestAccessNoClone()
775 for (i=cpCount; i>=0; i--) { in TestAccessNoClone()
786 i = cpMap[cpCount].nativeIdx; in TestAccessNoClone()
788 for (i=cpCount; i>=0; i-=3) { in TestAccessNoClone()