(String source, String needle)
| 306 | } |
| 307 | |
| 308 | private String findBlock(String source, String needle) { |
| 309 | int start = source.indexOf("<"+needle+">"); |
| 310 | int end = source.indexOf("</"+needle+">",start); |
| 311 | if (start<0 || end<0) |
| 312 | return null; |
| 313 | return source.substring(start+needle.length()+2, end); |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | //#endif |