• Home
  • Raw
  • Download

Lines Matching refs:iter1

43 compareIterators(UCharIterator *iter1, const char *n1,  in compareIterators()  argument
49 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
59 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
72 c1=iter1->current(iter1); in compareIterators()
81 c1=iter1->next(iter1); in compareIterators()
84 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
91 c1=iter1->previous(iter1); in compareIterators()
94 …%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
100 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators()
105 if(!iter1->hasNext(iter1)) { in compareIterators()
121 c1=iter1->next(iter1); in compareIterators()
124 …"%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
129 if(iter1->hasNext(iter1)) { in compareIterators()
139 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators()
152 pos1=iter1->move(iter1, 1, UITER_ZERO); in compareIterators()
165 pos1=iter1->move(iter1, 0, UITER_LIMIT); in compareIterators()
170 if(!iter1->hasPrevious(iter1)) { in compareIterators()
186 c1=iter1->previous(iter1); in compareIterators()
189 …vious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators()
194 if(iter1->hasPrevious(iter1)) { in compareIterators()
214 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) { in testIteratorState() argument
223 iter1->move(iter1, middle-2, UITER_ZERO); in testIteratorState()
225 c=iter1->next(iter1); in testIteratorState()
235 iter1->move(iter1, -2, UITER_CURRENT); in testIteratorState()
236 state=uiter_getState(iter1); in testIteratorState()
273 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
283 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
305 UCharIterator iter1, iter2; in TestLenient8Iterator() local
312 uiter_setString(&iter1, text, -1); in TestLenient8Iterator()
314 compareIterators(&iter1, "UTF16Iterator", &iter2, "Lenient8Iterator"); in TestLenient8Iterator()
318 compareIterators(&iter1, "UTF16Iterator", &iter2, "Lenient8Iterator_1"); in TestLenient8Iterator()
322 uiter_setLenient8(&iter1, (const char*)bytes, -1); in TestLenient8Iterator()
323 testIteratorState(&iter1, &iter2, "Lenient8IteratorState", length/2); in TestLenient8Iterator()
324 testIteratorState(&iter1, &iter2, "Lenient8IteratorStatePlus1", length/2+1); in TestLenient8Iterator()
331 uiter_setString(&iter1, text, -1); in TestLenient8Iterator()
332 iter1.move(&iter1, 0, UITER_START); in TestLenient8Iterator()
335 c1=iter1.next(&iter1); in TestLenient8Iterator()