function (str) {
      var index = this.html.indexOf(str, this.currentChar) + str.length;
      if (index === -1)
        this.currentChar = this.html.length;
      this.currentChar = index;
    }
function (str) {
      var index = this.html.indexOf(str, this.currentChar) + str.length;
      if (index === -1)
        this.currentChar = this.html.length;
      this.currentChar = index;
    }
function ( str ) { var index = this . html . indexOf ( str , this . currentChar ) + str . length ; if ( index === - 1 ) this . currentChar = this . html . length ; this . currentChar = index ; }
Searches the input until a string is found and discards all input up to
and including the matched string.
Searches the input until a string is found and discards all input up to and including the matched string .
Find the next index of str