code: public boolean regionMatches(char []cb, int offset, int length)
    {
      int pos = getIndex();
  
      char ch = current();
      for (int i = 0; i < length; i++) {
        if (cb[i + offset] != ch) {
          setIndex(pos);
          return false;
        }
        ch = next();
      }
  
      return true;
    }
docs: True if the cursor matches the character buffer
  
  If match fails, return the pointer to its original.