Пример #1
0
 @Override
 public ByteSearchSection process(Content content, ByteSearchSection section) {
   ByteSearchPosition end = endmarker.findPos(section);
   if (end.found() && end.start > section.innerstart) {
     return content.addSectionPos(
         outputsection, content.content, section.start, section.innerstart, end.start, end.end);
   }
   return null;
 }
Пример #2
0
 @Override
 public ByteSearchSection process(Content content, ByteSearchSection section) {
   int tagclose = findQuoteSafeTagEnd(section);
   if (tagclose > -1) {
     ByteSearchPosition end = endmarker.findPos(section, tagclose);
     if (end.found()) {
       ByteSearchSection s =
           content.addSectionPos(
               outputsection, content.content, section.start, tagclose, end.start, end.end);
       return s;
     }
   }
   return null;
 }