code: public void reset() {
          setMatchNotFound();
          setIndex(search_.beginIndex());
          search_.isOverlap_ = false;
          search_.isCanonicalMatch_ = false;
          search_.elementComparisonType_ = ElementComparisonType.STANDARD_ELEMENT_COMPARISON;
          search_.isForwardSearching_ = true;
          search_.reset_ = true;
      }
docs: Resets the iteration.
  Search will begin at the start of the text string if a forward
  iteration is initiated before a backwards iteration. Otherwise if a
  backwards iteration is initiated before a forwards iteration, the
  search will begin at the end of the text string.