/** Handles processing instruction, ASP tags etc. * * @param text the text. * @param pos the first character in the markup after <code><%</code>. * @param end the end of <code>text</code>. * @return the position of the first character after the processing instruction. */ protected int handleProcessingInstruction(final char[] text, int pos, final int end) { switch(text[++pos]) { case '%': if ((pos = CLOSED_PERCENT.search(text, pos, end)) == -1) pos = end; else pos += CLOSED_PERCENT.length(); break; case '?': if ((pos = CLOSED_PIC.search(text, pos, end)) == -1) pos = end; else pos += CLOSED_PIC.length(); break; case '[': if ((pos = CLOSED_SECTION.search(text, pos, end)) == -1) pos = end; else pos += CLOSED_SECTION.length(); break; default: // Generic markup while(pos < end && text[pos++] != '>'); break; } return pos; }
/** Handles processing instruction, ASP tags etc. * * @param text the text. * @param pos the first character in the markup after <samp><%</samp>. * @param end the end of <code>text</code>. * @return the position of the first character after the processing instruction. */ protected int handleProcessingInstruction( final char[] text, int pos, final int end ) { switch( text[ ++pos ] ) { case '%': if ( ( pos = CLOSED_PERCENT.search( text, pos, end ) ) == -1 ) pos = end; else pos += CLOSED_PERCENT.length(); break; case '?': if ( ( pos = CLOSED_PIC.search( text, pos, end ) ) == -1 ) pos = end; else pos += CLOSED_PIC.length(); break; case '[': if ( ( pos = CLOSED_SECTION.search( text, pos, end ) ) == -1 ) pos = end; else pos += CLOSED_SECTION.length(); break; default: // Generic markup while( pos < end && text[ pos++ ] != '>' ); break; } return pos; }
/** Handles processing instruction, ASP tags etc. * * @param text the text. * @param pos the first character in the markup after <samp><%</samp>. * @param end the end of <code>text</code>. * @return the position of the first character after the processing instruction. */ protected int handleProcessingInstruction( final char[] text, int pos, final int end ) { switch( text[ ++pos ] ) { case '%': if ( ( pos = CLOSED_PERCENT.search( text, pos, end ) ) == -1 ) pos = end; else pos += CLOSED_PERCENT.length(); break; case '?': if ( ( pos = CLOSED_PIC.search( text, pos, end ) ) == -1 ) pos = end; else pos += CLOSED_PIC.length(); break; case '[': if ( ( pos = CLOSED_SECTION.search( text, pos, end ) ) == -1 ) pos = end; else pos += CLOSED_SECTION.length(); break; default: // Generic markup while( pos < end && text[ pos++ ] != '>' ); break; } return pos; }
metaRefresh = content.substring( pos + URLEQUAL_PATTERN.length() ).toString();
metaRefresh = content.substring( pos + URLEQUAL_PATTERN.length() ).toString();
metaRefresh = content.substring(pos + URLEQUAL_PATTERN.length()).toString();
end = BRACKETS_CLOSED.search( text, start += CATEGORY_START.length() ); if ( end != -1 ) category.append( text.subSequence( start, end ) ).append( " OXOXO " ); else break;
if ( pos < end ) { if ( parseTags ) callback.endElement( currentElement ); pos += pattern.length();
if (pos < end) { if (parseTags) callback.endElement(currentElement); pos += pattern.length();
if ( pos < end ) { if ( parseTags ) callback.endElement( currentElement ); pos += pattern.length();