160 |
} |
} |
161 |
|
|
162 |
public static int skipHtmlWhitespace(char[] buffer, int startIndex) { |
public static int skipHtmlWhitespace(char[] buffer, int startIndex) { |
163 |
boolean inTag=false; |
while (startIndex < buffer.length) { |
164 |
for (int index=startIndex; index<buffer.length; ++index) { |
char c=buffer[startIndex]; |
165 |
char c=buffer[index]; |
if (!Parser.isWhitespace(c)) { |
166 |
if (inTag) { |
break; |
167 |
if (c=='>') inTag=false; |
} |
168 |
} |
else { |
169 |
else { |
++ startIndex; |
170 |
if (c=='<') inTag=true; |
} |
|
else if (!Parser.isWhitespace(c)) |
|
|
return index; |
|
|
} |
|
171 |
} |
} |
172 |
return buffer.length; |
return startIndex; |
173 |
} |
} |
174 |
|
|
175 |
/** |
/** |