Lines Matching refs:iter2
54 UCharIterator *iter2, const char *n2) { in compareIterators() argument
60 pos2=iter2->getIndex(iter2, UITER_LENGTH); in compareIterators()
75 pos2=iter2->move(iter2, middle, UITER_ZERO); in compareIterators()
83 c2=iter2->current(iter2); in compareIterators()
92 c2=iter2->next(iter2); in compareIterators()
102 c2=iter2->previous(iter2); in compareIterators()
120 pos2=iter2->move(iter2, 0, UITER_START); in compareIterators()
125 if(!iter2->hasNext(iter2)) { in compareIterators()
132 c2=iter2->next(iter2); in compareIterators()
143 if(iter2->hasNext(iter2)) { in compareIterators()
155 pos2=iter2->move(iter2, middle, UITER_ZERO); in compareIterators()
168 pos2=iter2->move(iter2, 1, UITER_ZERO); in compareIterators()
185 pos2=iter2->move(iter2, 0, UITER_LIMIT); in compareIterators()
190 if(!iter2->hasPrevious(iter2)) { in compareIterators()
197 c2=iter2->previous(iter2); in compareIterators()
208 if(iter2->hasPrevious(iter2)) { in compareIterators()
224 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) { in testIteratorState() argument
250 uiter_setState(iter2, state, &errorCode); in testIteratorState()
256 c=iter2->current(iter2); in testIteratorState()
261 c=iter2->previous(iter2); in testIteratorState()
266 iter2->move(iter2, 2, UITER_CURRENT); in testIteratorState()
267 c=iter2->next(iter2); in testIteratorState()
272 iter2->move(iter2, -3, UITER_CURRENT); in testIteratorState()
273 c=iter2->previous(iter2); in testIteratorState()
279 iter2->move(iter2, 1, UITER_CURRENT); in testIteratorState()
280 iter2->next(iter2); in testIteratorState()
284 j=iter2->getIndex(iter2, UITER_CURRENT); in testIteratorState()
294 j=iter2->getIndex(iter2, UITER_LENGTH); in testIteratorState()
315 UCharIterator iter1, iter2; in TestLenient8Iterator() local
323 uiter_setLenient8(&iter2, (const char *)bytes, sizeof(bytes)-1); in TestLenient8Iterator()
324 compareIterators(&iter1, "UTF16Iterator", &iter2, "Lenient8Iterator"); in TestLenient8Iterator()
327 uiter_setLenient8(&iter2, (const char *)bytes, -1); in TestLenient8Iterator()
328 compareIterators(&iter1, "UTF16Iterator", &iter2, "Lenient8Iterator_1"); in TestLenient8Iterator()
333 testIteratorState(&iter1, &iter2, "Lenient8IteratorState", length/2); in TestLenient8Iterator()
334 testIteratorState(&iter1, &iter2, "Lenient8IteratorStatePlus1", length/2+1); in TestLenient8Iterator()
343 iter2.move(&iter2, 0, UITER_START); in TestLenient8Iterator()
346 c2=iter2.next(&iter2); in TestLenient8Iterator()