Lines Matching refs:iter1
432 UCharIterator iter1, iter2; in TestStringFunctions() local
467 uiter_setString(&iter1, strings[i], len1); in TestStringFunctions()
469 if(u_strCompareIter(&iter1, &iter2, TRUE)>=0) { in TestStringFunctions()
472 r1=u_strCompareIter(&iter1, &iter2, FALSE); in TestStringFunctions()
1252 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument
1258 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
1268 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1281 c1=iter1->current(iter1); in compareIterators()
1290 c1=iter1->next(iter1); in compareIterators()
1293 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1300 c1=iter1->previous(iter1); in compareIterators()
1303 …%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1309 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
1314 if(!iter1->hasNext(iter1)) { in compareIterators()
1330 c1=iter1->next(iter1); in compareIterators()
1333 …"%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1338 if(iter1->hasNext(iter1)) { in compareIterators()
1348 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1361 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators()
1374 pos1=iter1->move(iter1, 0, UITER_LIMIT); in compareIterators()
1379 if(!iter1->hasPrevious(iter1)) { in compareIterators()
1395 c1=iter1->previous(iter1); in compareIterators()
1398 …vious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1403 if(iter1->hasPrevious(iter1)) { in compareIterators()
1423 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) { in testIteratorState() argument
1432 iter1->move(iter1, middle-2, UITER_ZERO); in testIteratorState()
1434 c=iter1->next(iter1); in testIteratorState()
1444 iter1->move(iter1, -2, UITER_CURRENT); in testIteratorState()
1445 state=uiter_getState(iter1); in testIteratorState()
1482 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
1492 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
1506 UCharIterator iter, iter1, iter2; in TestUCharIterator() local
1522 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1524 testIteratorState(&iter1, &iter2, "UTF16IteratorState", length/2); in TestUCharIterator()
1525 testIteratorState(&iter1, &iter2, "UTF16IteratorStatePlus1", length/2+1); in TestUCharIterator()
1535 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1537 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator"); in TestUCharIterator()
1541 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator_1"); in TestUCharIterator()
1545 uiter_setUTF8(&iter1, bytes, -1); in TestUCharIterator()
1546 testIteratorState(&iter1, &iter2, "UTF8IteratorState", length/2); in TestUCharIterator()
1547 testIteratorState(&iter1, &iter2, "UTF8IteratorStatePlus1", length/2+1); in TestUCharIterator()
1562 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1564 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator"); in TestUCharIterator()
1568 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator_1"); in TestUCharIterator()
1573 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIteratorMoved1"); in TestUCharIterator()