private byte skipTagForward(){
  int initialCharIndex=charIndex;
  while (charIndex < length) {
    lastChar=text.charAt(charIndex++);
    if (lastChar == '>') {
      return Character.DIRECTIONALITY_WHITESPACE;
    }
    if (lastChar == '"' || lastChar == '\'') {
      char quote=lastChar;
      while (charIndex < length && (lastChar=text.charAt(charIndex++)) != quote) {
      }
    }
  }
  charIndex=initialCharIndex;
  lastChar='<';
  return Character.DIRECTIONALITY_OTHER_NEUTRALS;
}

private byte skipTagForward ( ) { int initialCharIndex = charIndex ; while ( charIndex < length ) { lastChar = text . charAt ( charIndex ++ ) ; if ( lastChar == '>' ) { return Character . DIRECTIONALITY_WHITESPACE ; } if ( lastChar == '"' || lastChar == '\'' ) { char quote = lastChar ; while ( charIndex < length && ( lastChar = text . charAt ( charIndex ++ ) ) != quote ) { } } } charIndex = initialCharIndex ; lastChar = '<' ; return Character . DIRECTIONALITY_OTHER_NEUTRALS ; }
advances charindex forward through an html tag ( after the opening & lt ; has already been read ) and returns character . directionality_whitespace . if there is no matching & gt ; , does not change charindex and returns character . directionality_other_neutrals ( for the & lt ; that hadn ' t been part of a tag after all ) .
