Lines Matching defs:CharacterIterator

194  * CharacterIterator classes but extends them significantly:
196 * <li>CharacterIterator is now a subclass of ForwardCharacterIterator.</li>
219 * void forward1(CharacterIterator &it) {
230 * void forward2(CharacterIterator &it) {
232 * for(c=it.firstPostInc(); c!=CharacterIterator::DONE; c=it.nextPostInc()) {
239 * void backward1(CharacterIterator &it) {
249 * void backward2(CharacterIterator &it) {
251 * for(c=it.last(); c!=CharacterIterator::DONE; c=it.previous()) {
259 * void random(CharacterIterator &it) {
261 * it.move32(3, CharacterIterator::kStart);
269 * it.move(-1, CharacterIterator::kCurrent);
274 * exit(1); // CharacterIterator inconsistent
293 * void traverseForward(CharacterIterator& iter)
295 * for(UChar c = iter.first(); c != CharacterIterator.DONE; c = iter.next()) {
304 * void traverseBackward(CharacterIterator& iter)
306 * for(UChar c = iter.last(); c != CharacterIterator.DONE; c = iter.previous()) {
316 * void traverseOut(CharacterIterator& iter, int32_t pos)
320 * c != CharacterIterator.DONE && (Unicode::isLetter(c) || Unicode::isDigit(c));
324 * c != CharacterIterator.DONE && (Unicode::isLetter(c) || Unicode::isDigit(c));
356 class U_COMMON_API CharacterIterator : public ForwardCharacterIterator {
368 virtual ~CharacterIterator();
371 * Returns a pointer to a new CharacterIterator of the same
375 * @return a pointer to a new CharacterIterator
378 virtual CharacterIterator* clone(void) const = 0;
623 CharacterIterator();
629 CharacterIterator(int32_t length);
635 CharacterIterator(int32_t length, int32_t position);
641 CharacterIterator(int32_t length, int32_t textBegin, int32_t textEnd, int32_t position);
646 * @param that The CharacterIterator to be copied
649 CharacterIterator(const CharacterIterator &that);
652 * Assignment operator. Sets this CharacterIterator to have the same behavior,
654 * @param that The CharacterIterator passed in.
655 * @return the newly set CharacterIterator.
658 CharacterIterator &operator=(const CharacterIterator &that);
692 CharacterIterator::setToStart() {
697 CharacterIterator::setToEnd() {
702 CharacterIterator::startIndex(void) const {
707 CharacterIterator::endIndex(void) const {
712 CharacterIterator::getIndex(void) const {
717 CharacterIterator::getLength(void) const {