Lines Matching refs:cpCount
163 int32_t cpCount = 0;
181 cpCount++;
193 TestAccess(sa, ut, cpCount, cpMap);
204 TestAccess(sa, ut, cpCount, cpMap);
213 TestAccess(sa, ut, cpCount, cpMap);
214 TestCMR(sa, ut, cpCount, cpMap, cpMap);
222 TestAccess(sa, ut, cpCount, cpMap);
230 TestAccess(sa, ut, cpCount, cpMap);
231 TestCMR(sa, ut, cpCount, cpMap, cpMap);
241 TestAccess(sa, ut, cpCount, cpMap);
251 TestAccess(sa, ut, cpCount, cpMap);
266 for (j=0; j<cpCount ; j++) { // code point number
271 u8Map[cpCount].nativeIdx = u8Len; // position following the last char in utf-8 string.
277 TestAccess(sa, ut, cpCount, u8Map);
290 // cpCount number of code points in the test text.
297 void UTextTest::TestCMR(const UnicodeString &us, UText *ut, int cpCount, m *nativeMap, m *u16Map) {
324 case 3: srcLength = cpCount / 3;
330 case 3: srcIndex = cpCount - srcLength; break;
331 case 4: srcIndex = cpCount - srcLength - 1; break;
332 case 5: srcIndex = cpCount / 2; break;
334 if (srcIndex < 0 || srcIndex + srcLength > cpCount) {
350 case 5: destIndex = cpCount-1; break;
351 case 6: destIndex = cpCount; break;
353 if (destIndex<0 || destIndex>cpCount) {
551 void UTextTest::TestAccess(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) {
553 TestAccessNoClone(us, ut, cpCount, cpMap);
560 TestAccessNoClone(us, shallowClone, cpCount, cpMap);
573 TestAccessNoClone(us, deepClone, cpCount, cpMap);
584 void UTextTest::TestAccessNoClone(const UnicodeString &us, UText *ut, int cpCount, m *cpMap) {
591 int64_t expectedLen = cpMap[cpCount].nativeIdx;
607 for (i=0; i<cpCount; i++) {
625 for (i=0; i<cpCount; i++) {
652 for (i=cpCount-1; i>=0; i--) {
686 for (i=cpCount-1; i>=0; i--) {
717 for (i=0; i<cpCount; i++) {
718 cpIndex = (cpIndex + 9973) % cpCount;
729 for (i=0; i<cpCount; i++) {
730 cpIndex = (cpIndex + 9973) % cpCount;
747 for (i=1; i<=cpCount; i++) {
758 for (i=2; i<cpCount; i+=2) {
768 i = cpMap[cpCount].nativeIdx;
770 for (i=cpCount; i>=0; i--) {
781 i = cpMap[cpCount].nativeIdx;
783 for (i=cpCount; i>=0; i-=3) {