Lines Matching refs:iter1
428 UCharIterator iter1, iter2; in TestStringFunctions() local
463 uiter_setString(&iter1, strings[i], len1); in TestStringFunctions()
465 if(u_strCompareIter(&iter1, &iter2, TRUE)>=0) { in TestStringFunctions()
468 r1=u_strCompareIter(&iter1, &iter2, FALSE); in TestStringFunctions()
1189 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument
1195 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
1205 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1218 c1=iter1->current(iter1); in compareIterators()
1227 c1=iter1->next(iter1); in compareIterators()
1230 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1237 c1=iter1->previous(iter1); in compareIterators()
1240 …%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1246 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
1251 if(!iter1->hasNext(iter1)) { in compareIterators()
1267 c1=iter1->next(iter1); in compareIterators()
1270 …"%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1275 if(iter1->hasNext(iter1)) { in compareIterators()
1285 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1298 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators()
1311 pos1=iter1->move(iter1, 0, UITER_LIMIT); in compareIterators()
1316 if(!iter1->hasPrevious(iter1)) { in compareIterators()
1332 c1=iter1->previous(iter1); in compareIterators()
1335 …vious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1340 if(iter1->hasPrevious(iter1)) { in compareIterators()
1360 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) { in testIteratorState() argument
1369 iter1->move(iter1, middle-2, UITER_ZERO); in testIteratorState()
1371 c=iter1->next(iter1); in testIteratorState()
1381 iter1->move(iter1, -2, UITER_CURRENT); in testIteratorState()
1382 state=uiter_getState(iter1); in testIteratorState()
1419 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
1429 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
1443 UCharIterator iter, iter1, iter2; in TestUCharIterator() local
1459 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1461 testIteratorState(&iter1, &iter2, "UTF16IteratorState", length/2); in TestUCharIterator()
1462 testIteratorState(&iter1, &iter2, "UTF16IteratorStatePlus1", length/2+1); in TestUCharIterator()
1472 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1474 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator"); in TestUCharIterator()
1478 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator_1"); in TestUCharIterator()
1482 uiter_setUTF8(&iter1, bytes, -1); in TestUCharIterator()
1483 testIteratorState(&iter1, &iter2, "UTF8IteratorState", length/2); in TestUCharIterator()
1484 testIteratorState(&iter1, &iter2, "UTF8IteratorStatePlus1", length/2+1); in TestUCharIterator()
1499 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1501 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator"); in TestUCharIterator()
1505 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator_1"); in TestUCharIterator()
1510 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIteratorMoved1"); in TestUCharIterator()