Lines Matching refs:iter1
53 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument
59 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
69 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
82 c1=iter1->current(iter1); in compareIterators()
91 c1=iter1->next(iter1); in compareIterators()
94 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
101 c1=iter1->previous(iter1); in compareIterators()
104 …%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
110 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
115 if(!iter1->hasNext(iter1)) { in compareIterators()
131 c1=iter1->next(iter1); in compareIterators()
134 …"%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
139 if(iter1->hasNext(iter1)) { in compareIterators()
149 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
162 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators()
175 pos1=iter1->move(iter1, 0, UITER_LIMIT); in compareIterators()
180 if(!iter1->hasPrevious(iter1)) { in compareIterators()
196 c1=iter1->previous(iter1); in compareIterators()
199 …vious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
204 if(iter1->hasPrevious(iter1)) { in compareIterators()
224 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) { in testIteratorState() argument
233 iter1->move(iter1, middle-2, UITER_ZERO); in testIteratorState()
235 c=iter1->next(iter1); in testIteratorState()
245 iter1->move(iter1, -2, UITER_CURRENT); in testIteratorState()
246 state=uiter_getState(iter1); in testIteratorState()
283 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
293 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
315 UCharIterator iter1, iter2; in TestLenient8Iterator() local
322 uiter_setString(&iter1, text, -1); in TestLenient8Iterator()
324 compareIterators(&iter1, "UTF16Iterator", &iter2, "Lenient8Iterator"); in TestLenient8Iterator()
328 compareIterators(&iter1, "UTF16Iterator", &iter2, "Lenient8Iterator_1"); in TestLenient8Iterator()
332 uiter_setLenient8(&iter1, (const char*)bytes, -1); in TestLenient8Iterator()
333 testIteratorState(&iter1, &iter2, "Lenient8IteratorState", length/2); in TestLenient8Iterator()
334 testIteratorState(&iter1, &iter2, "Lenient8IteratorStatePlus1", length/2+1); in TestLenient8Iterator()
341 uiter_setString(&iter1, text, -1); in TestLenient8Iterator()
342 iter1.move(&iter1, 0, UITER_START); in TestLenient8Iterator()
345 c1=iter1.next(&iter1); in TestLenient8Iterator()