Home | History | Annotate | Download | only in intltest

Lines Matching refs:cpCount

171     int32_t       cpCount = 0;
189 cpCount++;
201 TestAccess(sa, ut, cpCount, cpMap);
212 TestAccess(sa, ut, cpCount, cpMap);
221 TestAccess(sa, ut, cpCount, cpMap);
222 TestCMR(sa, ut, cpCount, cpMap, cpMap);
230 TestAccess(sa, ut, cpCount, cpMap);
238 TestAccess(sa, ut, cpCount, cpMap);
239 TestCMR(sa, ut, cpCount, cpMap, cpMap);
249 TestAccess(sa, ut, cpCount, cpMap);
259 TestAccess(sa, ut, cpCount, cpMap);
274 for (j=0; j<cpCount ; j++) { // code point number
279 u8Map[cpCount].nativeIdx = u8Len; // position following the last char in utf-8 string.
285 TestAccess(sa, ut, cpCount, u8Map);
298 // cpCount number of code points in the test text.
305 void UTextTest::TestCMR(const UnicodeString &us, UText *ut, int cpCount, m *nativeMap, m *u16Map) {
332 case 3: srcLength = cpCount / 3;
338 case 3: srcIndex = cpCount - srcLength; break;
339 case 4: srcIndex = cpCount - srcLength - 1; break;
340 case 5: srcIndex = cpCount / 2; break;
342 if (srcIndex < 0 || srcIndex + srcLength > cpCount) {
358 case 5: destIndex = cpCount-1; break;
359 case 6: destIndex = cpCount; break;
361 if (destIndex<0 || destIndex>cpCount) {
559 void UTextTest::TestAccess(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) {
561 TestAccessNoClone(us, ut, cpCount, cpMap);
568 TestAccessNoClone(us, shallowClone, cpCount, cpMap);
581 TestAccessNoClone(us, deepClone, cpCount, cpMap);
592 void UTextTest::TestAccessNoClone(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) {
599 int64_t expectedLen = cpMap[cpCount].nativeIdx;
615 for (i=0; i<cpCount; i++) {
633 for (i=0; i<cpCount; i++) {
660 for (i=cpCount-1; i>=0; i--) {
694 for (i=cpCount-1; i>=0; i--) {
725 for (i=0; i<cpCount; i++) {
726 cpIndex = (cpIndex + 9973) % cpCount;
737 for (i=0; i<cpCount; i++) {
738 cpIndex = (cpIndex + 9973) % cpCount;
755 for (i=1; i<=cpCount; i++) {
766 for (i=2; i<cpCount; i+=2) {
776 i = cpMap[cpCount].nativeIdx;
778 for (i=cpCount; i>=0; i--) {
789 i = cpMap[cpCount].nativeIdx;
791 for (i=cpCount; i>=0; i-=3) {