lib/HTMLParser.js
function emitCharsWhile(pattern) {
    pattern.lastIndex = nextchar-1;
    var match = pattern.exec(chars)[0];
    if (!match) return false;
    emitCharString(match);
    nextchar += match.length - 1;
    return true;
  }
function emitCharsWhile(pattern) {
    pattern.lastIndex = nextchar-1;
    var match = pattern.exec(chars)[0];
    if (!match) return false;
    emitCharString(match);
    nextchar += match.length - 1;
    return true;
  }
function emitCharsWhile ( pattern ) { pattern . lastIndex = nextchar - 1 ; var match = pattern . exec ( chars ) [ 0 ] ; if ( ! match ) return false ; emitCharString ( match ) ; nextchar += match . length - 1 ; return true ; }
emit a string of chars that match a regexp Returns false if no chars matched.
emit a string of chars that match a regexp Returns false if no chars matched .