Home | History | Annotate | Download | only in intltest

Lines Matching full:iter

383         StringCharacterIterator   iter(text, 5);
386 iter.getText(iterText);
388 errln("iter.getText() failed");
390 if (iter.current() != text[(int32_t)5])
393 c = iter.first();
396 if (iter.startIndex() != 0 || iter.endIndex() != text.length())
408 if (iter.current() != c)
410 if (iter.getIndex() != i)
414 c = iter.next();
418 c=iter.next();
421 c=iter.setIndex(text.length()+1);
425 c = iter.last();
437 if (iter.current() != c)
439 if (iter.getIndex() != i)
441 if(iter.setIndex(i) != c)
445 c = iter.previous();
450 c=iter.previous();
457 c=iter.firstPostInc();
461 if(iter.getIndex() != i+1)
464 iter.setToStart();
466 if (iter.startIndex() != 0)
472 c = iter.nextPostInc();
480 if(iter.getIndex() != i)
482 if(iter.current() != text[i])
484 } while (iter.hasNext());
485 c=iter.nextPostInc();
491 StringCharacterIterator iter(text, 5, 15, 10);
492 if (iter.startIndex() != 5 || iter.endIndex() != 15)
495 if (iter.getIndex() != 10 || iter.current() != text[(int32_t)10])
498 c = iter.first();
510 if (iter.current() != c)
512 if (iter.getIndex() != i)
514 if(iter.setIndex(i) != c)
518 c = iter.next();
523 c = iter.last();
535 if (iter.current() != c)
537 if (iter.getIndex() != i)
541 c = iter.previous();
557 StringCharacterIterator iter(text, 1);
560 iter.getText(iterText);
562 errln("iter.getText() failed");
564 if (iter.current32() != text[(int32_t)1])
567 c=iter.setToStart();
569 i=iter.move32(1, CharacterIterator::kStart);
570 c=iter.current32();
574 i=iter.move32(2, CharacterIterator::kCurrent);
575 c=iter.current32();
579 i=iter.move32(-2, CharacterIterator::kCurrent);
580 c=iter.current32();
585 i=iter.move32(-2, CharacterIterator::kEnd);
586 c=iter.current32();
591 c = iter.first32();
594 if (iter.startIndex() != 0 || iter.endIndex() != text.length())
602 else if(iter.hasNext() == FALSE && i != text.length())
607 if (iter.current32() != c)
609 if(iter.setIndex32(i) != c)
612 c = iter.next32();
616 if(iter.hasNext() == TRUE)
621 c=iter.setToEnd();
622 if(iter.getIndex() != text.length() || iter.hasNext() != FALSE)
625 c=iter.next32();
628 c=iter.setIndex32(text.length()+1);
633 c = iter.last32();
639 else if(iter.hasPrevious() == FALSE && i>0)
644 if (iter.current32() != c)
646 if(iter.setIndex32(i) != c)
648 if (iter.getIndex() != i)
651 c = iter.previous32();
655 if(iter.hasPrevious() == TRUE)
658 c=iter.previous32();
667 c=iter.first32PostInc();
670 if(iter.getIndex() != U16_LENGTH(c) + i)
673 iter.setToStart();
675 if (iter.startIndex() != 0)
681 c = iter.next32PostInc();
687 if(iter.getIndex() != i)
689 if(iter.current32() != text.char32At(i))
691 } while (iter.hasNext());
692 c=iter.next32PostInc();
700 StringCharacterIterator iter(text, 1, 11, 10);
701 if (iter.startIndex() != 1 || iter.endIndex() != 11)
704 if (iter.getIndex() != 10 || iter.current32() != text.char32At(10))
707 c = iter.first32();
715 else if(iter.hasNext() == FALSE)
720 if (iter.current32() != c)
722 if(iter.setIndex32(i) != c)
726 c = iter.next32();
730 c=iter.next32();
736 c=iter.last32();
742 else if(iter.hasPrevious() == FALSE && i > 5)
746 if (iter.current32() != c)
748 if (iter.getIndex() != i)
750 if(iter.setIndex32(i) != c)
754 c = iter.previous32();
759 c=iter.previous32();
767 void CharIterTest::TestUCharIterator(UCharIterator *iter, CharacterIterator &ci,
774 // move both iter and s[index]
777 h=iter->hasNext(iter);
779 c=iter->current(iter);
783 h=iter->hasNext(iter);
785 c=uiter_current32(iter);
790 h=iter->hasNext(iter);
792 c=iter->next(iter);
796 h=iter->hasNext(iter);
798 c=uiter_next32(iter);
803 h=iter->hasPrevious(iter);
805 c=iter->previous(iter);
809 h=iter->hasPrevious(iter);
811 c=uiter_previous32(iter);
817 c=(UChar32)iter->move(iter, 2, UITER_CURRENT);
823 c=(UChar32)iter->move(iter, -2, UITER_CURRENT);
838 if(c!=c2 || h!=h2 || ci.getIndex()!=iter->getIndex(iter, UITER_CURRENT)) {
917 errln("error: UCharIterator(char iter).getIndex did not return error value");
922 errln("error: UCharIterator(char iter).move did not return error value");
928 errln("error: UCharIterator(repl iter).getIndex did not return error value");
933 errln("error: UCharIterator(repl iter).move did not return error value");
939 errln("error: UCharIterator(string iter).getIndex did not return error value");
944 errln("error: UCharIterator(string iter).move did not return error value");