code: @Override
      public int getIndex() {
          int result = textIter_.getOffset();
          if (isOutOfBounds(search_.beginIndex(), search_.endIndex(), result)) {
              return DONE;
          }
          return result;
      }
docs: {@inheritDoc}