Home | History | Annotate | Download | only in cintltst

Lines Matching refs:iter2

431         UCharIterator iter1, iter2;
467 uiter_setString(&iter2, strings[i+1], len2);
468 if(u_strCompareIter(&iter1, &iter2, TRUE)>=0) {
471 r1=u_strCompareIter(&iter1, &iter2, FALSE);
1193 UCharIterator *iter2, const char *n2) {
1199 pos2=iter2->getIndex(iter2, UITER_LENGTH);
1214 pos2=iter2->move(iter2, middle, UITER_ZERO);
1222 c2=iter2->current(iter2);
1231 c2=iter2->next(iter2);
1241 c2=iter2->previous(iter2);
1259 pos2=iter2->move(iter2, 0, UITER_START);
1264 if(!iter2->hasNext(iter2)) {
1271 c2=iter2->next(iter2);
1282 if(iter2->hasNext(iter2)) {
1294 pos2=iter2->move(iter2, middle, UITER_ZERO);
1307 pos2=iter2->move(iter2, 1, UITER_ZERO);
1324 pos2=iter2->move(iter2, 0, UITER_LIMIT);
1329 if(!iter2->hasPrevious(iter2)) {
1336 c2=iter2->previous(iter2);
1347 if(iter2->hasPrevious(iter2)) {
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) {
1389 uiter_setState(iter2, state, &errorCode);
1395 c=iter2->current(iter2);
1400 c=iter2->previous(iter2);
1405 iter2->move(iter2, 2, UITER_CURRENT);
1406 c=iter2->next(iter2);
1411 iter2->move(iter2, -3, UITER_CURRENT);
1412 c=iter2->previous(iter2);
1418 iter2->move(iter2, 1, UITER_CURRENT);
1419 iter2->next(iter2);
1423 j=iter2->getIndex(iter2, UITER_CURRENT);
1433 j=iter2->getIndex(iter2, UITER_LENGTH);
1446 UCharIterator iter, iter1, iter2;
1463 uiter_setString(&iter2, text, length);
1464 testIteratorState(&iter1, &iter2, "UTF16IteratorState", length/2);
1465 testIteratorState(&iter1, &iter2, "UTF16IteratorStatePlus1", length/2+1);
1476 uiter_setUTF8(&iter2, bytes, length);
1477 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator");
1480 uiter_setUTF8(&iter2, bytes, -1);
1481 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF8Iterator_1");
1486 testIteratorState(&iter1, &iter2, "UTF8IteratorState", length/2);
1487 testIteratorState(&iter1, &iter2, "UTF8IteratorStatePlus1", length/2+1);
1503 uiter_setUTF16BE(&iter2, bytes, length);
1504 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator");
1507 uiter_setUTF16BE(&iter2, bytes, -1);
1508 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIterator_1");
1512 uiter_setUTF16BE(&iter2, bytes+1, -1);
1513 compareIterators(&iter1, "UTF16Iterator", &iter2, "UTF16BEIteratorMoved1");
1545 UCharIterator *iter2, const char *n2,
1554 iter2->getIndex(iter2, UITER_START)!=0 ||
1555 iter2->getIndex(iter2, UITER_LENGTH)!=UITER_UNKNOWN_INDEX
1562 iter2->move(iter2, middle, UITER_ZERO);
1566 c2=iter2->current(iter2);
1575 c2=iter2->next(iter2);
1585 c2=iter2->previous(iter2);
1599 iter2->move(iter2, 0, UITER_START);
1600 if(!iter2->hasNext(iter2)) {
1607 c2=iter2->next(iter2);
1618 if(iter2->hasNext(iter2)) {
1626 c2=iter2->previous(iter2);
1635 iter2->move(iter2, middle, UITER_ZERO);
1638 while((state=uiter_getState(iter2))==UITER_NO_STATE) {
1639 if(!iter2->hasNext(iter2)) {
1643 iter2->next(iter2);
1648 c2=iter2->current(iter2);
1649 iter2->move(iter2, 0, UITER_ZERO);
1650 uiter_setState(iter2, state, &errorCode);
1651 c1=iter2->current(iter2);
1657 c2=iter2->previous(iter2);
1658 iter2->move(iter2, 0, UITER_ZERO);
1659 uiter_setState(iter2, state, &errorCode);
1660 c1=iter2->previous(iter2);
1673 iter2->move(iter2, 0, UITER_LIMIT);
1674 if(!iter2->hasPrevious(iter2)) {
1681 c2=iter2->previous(iter2);
1692 if(iter2->hasPrevious(iter2)) {
1705 UCharIterator iter1, iter2, *iter;
1721 uiter_setString(&iter2, text, textLength);
1736 /* set the normalizing iterator to use iter2 */
1737 iter=unorm_setIter(uni, &iter2, mode, &errorCode);