1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package Torello.HTML.NodeSearch;

import java.util.*;
import java.util.regex.Pattern;
import java.util.function.Predicate;

import Torello.HTML.*;
import Torello.HTML.NodeSearch.searchLoops.TNFindL1Incl;
import Torello.Java.LV;

/**
 * Similar to {@link TagNodeFindInclusive}, this class searches Vectorized-HTML for {@link TagNode}
 * matches, and returns the opening and closing Tag-Indices of each match (as an instance
 * of {@link DotPair}); <B><I>however,</I></B> any matches that overlap each-other are eliminated
 * from the returned result-list.
 * 
 * <BR /><BR /><EMBED CLASS="external-html" DATA-FILE-ID=TagNodeFindL1Inclusive>
 */
@Torello.HTML.Tools.JavaDoc.JDHeaderBackgroundImg
@Torello.HTML.Tools.JavaDoc.StaticFunctional
public class TagNodeFindL1Inclusive
{
    private TagNodeFindL1Inclusive() { }

    public static Vector<DotPair> all   (Vector<? extends HTMLNode> html, String htmlTag)
    { return TNFindL1Incl.all           (html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag)); }

    public static Vector<DotPair> all   (Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag)
    { return TNFindL1Incl.all           (html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag)); }
}