Lines Matching refs:iter1
426 UCharIterator iter1, iter2; in TestStringFunctions() local
461 uiter_setString(&iter1, strings[i], len1); in TestStringFunctions()
463 if(u_strCompareIter(&iter1, &iter2, TRUE)>=0) { in TestStringFunctions()
466 r1=u_strCompareIter(&iter1, &iter2, FALSE); in TestStringFunctions()
1187 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument
1193 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
1203 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1216 c1=iter1->current(iter1); in compareIterators()
1225 c1=iter1->next(iter1); in compareIterators()
1228 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1235 c1=iter1->previous(iter1); in compareIterators()
1238 …%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1244 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
1249 if(!iter1->hasNext(iter1)) { in compareIterators()
1265 c1=iter1->next(iter1); in compareIterators()
1268 …"%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1273 if(iter1->hasNext(iter1)) { in compareIterators()
1283 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
1296 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators()
1309 pos1=iter1->move(iter1, 0, UITER_LIMIT); in compareIterators()
1314 if(!iter1->hasPrevious(iter1)) { in compareIterators()
1330 c1=iter1->previous(iter1); in compareIterators()
1333 …vious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
1338 if(iter1->hasPrevious(iter1)) { in compareIterators()
1358 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) { in testIteratorState() argument
1367 iter1->move(iter1, middle-2, UITER_ZERO); in testIteratorState()
1369 c=iter1->next(iter1); in testIteratorState()
1379 iter1->move(iter1, -2, UITER_CURRENT); in testIteratorState()
1380 state=uiter_getState(iter1); in testIteratorState()
1417 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
1427 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
1441 UCharIterator iter, iter1, iter2; in TestUCharIterator() local
1457 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1459 testIteratorState(&iter1, &iter2, "UTF16IteratorState", length/2); in TestUCharIterator()
1460 testIteratorState(&iter1, &iter2, "UTF16IteratorStatePlus1", length/2+1); in TestUCharIterator()
1470 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1472 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator"); in TestUCharIterator()
1476 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator_1"); in TestUCharIterator()
1480 uiter_setUTF8(&iter1, bytes, -1); in TestUCharIterator()
1481 testIteratorState(&iter1, &iter2, "UTF8IteratorState", length/2); in TestUCharIterator()
1482 testIteratorState(&iter1, &iter2, "UTF8IteratorStatePlus1", length/2+1); in TestUCharIterator()
1497 uiter_setString(&iter1, text, -1); in TestUCharIterator()
1499 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator"); in TestUCharIterator()
1503 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator_1"); in TestUCharIterator()
1508 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIteratorMoved1"); in TestUCharIterator()