Lines Matching defs:iter1
431 UCharIterator iter1, iter2;
466 uiter_setString(&iter1, strings[i], len1);
468 if(u_strCompareIter(&iter1, &iter2, TRUE)>=0) {
471 r1=u_strCompareIter(&iter1, &iter2, FALSE);
1192 compareIterators(UCharIterator *iter1, const char *n1,
1198 length=iter1->getIndex(iter1, UITER_LENGTH);
1208 pos1=iter1->move(iter1, middle, UITER_ZERO);
1221 c1=iter1->current(iter1);
1230 c1=iter1->next(iter1);
1233 log_err("%s->next()=U+%04x != U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1240 c1=iter1->previous(iter1);
1243 log_err("%s->previous()=U+%04x != U+%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1249 pos1=iter1->move(iter1, 0, UITER_START);
1254 if(!iter1->hasNext(iter1)) {
1270 c1=iter1->next(iter1);
1273 log_err("%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1278 if(iter1->hasNext(iter1)) {
1288 pos1=iter1->move(iter1, middle, UITER_ZERO);
1301 pos1=iter1->move(iter1, 1, UITER_ZERO);
1314 pos1=iter1->move(iter1, 0, UITER_LIMIT);
1319 if(!iter1->hasPrevious(iter1)) {
1335 c1=iter1->previous(iter1);
1338 log_err("%s->previous()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1343 if(iter1->hasPrevious(iter1)) {
1355 * iter1 and iter2 must be set up for the same iterator type and the same string
1363 testIteratorState(UCharIterator *iter1, UCharIterator *iter2, const char *n, int32_t middle) {
1372 iter1->move(iter1, middle-2, UITER_ZERO);
1374 c=iter1->next(iter1);
1384 iter1->move(iter1, -2, UITER_CURRENT);
1385 state=uiter_getState(iter1);
1422 i=iter1->getIndex(iter1, UITER_CURRENT);
1432 i=iter1->getIndex(iter1, UITER_LENGTH);
1446 UCharIterator iter, iter1, iter2;
1462 uiter_setString(&iter1, text, -1);
1464 testIteratorState(&iter1, &iter2, "UTF16IteratorState", length/2);
1465 testIteratorState(&iter1, &iter2, "UTF16IteratorStatePlus1", length/2+1);
1475 uiter_setString(&iter1, text, -1);
1477 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator");
1481 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator_1");
1485 uiter_setUTF8(&iter1, bytes, -1);
1486 testIteratorState(&iter1, &iter2, "UTF8IteratorState", length/2);
1487 testIteratorState(&iter1, &iter2, "UTF8IteratorStatePlus1", length/2+1);
1502 uiter_setString(&iter1, text, -1);
1504 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator");
1508 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator_1");
1513 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIteratorMoved1");
1544 compareIterNoIndexes(UCharIterator *iter1, const char *n1,
1561 iter1->move(iter1, middle, UITER_ZERO);
1565 c1=iter1->current(iter1);
1574 c1=iter1->next(iter1);
1577 log_err("%s->next()=U+%04x != U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1584 c1=iter1->previous(iter1);
1587 log_err("%s->previous()=U+%04x != U+%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1593 iter1->move(iter1, 0, UITER_START);
1594 if(!iter1->hasNext(iter1)) {
1606 c1=iter1->next(iter1);
1609 log_err("%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1614 if(iter1->hasNext(iter1)) {
1625 c1=iter1->previous(iter1);
1628 log_err("%s->previous()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1634 iter1->move(iter1, middle, UITER_ZERO);
1667 iter1->move(iter1, 0, UITER_LIMIT);
1668 if(!iter1->hasPrevious(iter1)) {
1680 c1=iter1->previous(iter1);
1683 log_err("%s->previous()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURRENT));
1688 if(iter1->hasPrevious(iter1)) {
1705 UCharIterator iter1, iter2, *iter;
1734 uiter_setString(&iter1, buffer, length);
1743 compareIterNoIndexes(&iter1, name1, iter, name2, middle);