@Test public void chompToIgnoreCase() { String t = "<textarea>one < two </TEXTarea>"; TokenQueue tq = new TokenQueue(t); String data = tq.chompToIgnoreCase("</textarea"); assertEquals("<textarea>one < two ", data); tq = new TokenQueue("<textarea> one two < three </oops>"); data = tq.chompToIgnoreCase("</textarea"); assertEquals("<textarea> one two < three </oops>", data); }
public String chompToIgnoreCase(String seq) { String data = consumeToIgnoreCase(seq); matchChomp(seq); return data; }
TokenQueue { public String chompToIgnoreCase(String seq) { String data = consumeToIgnoreCase(seq); matchChomp(seq); return data; } }
TokenQueue { public String chompToIgnoreCase(String seq) { String data = consumeToIgnoreCase(seq); matchChomp(seq); return data; } TokenQueue(String data); }
TokenQueue { public String chompToIgnoreCase(String seq) { String data = consumeToIgnoreCase(seq); matchChomp(seq); return data; } TokenQueue(String data); boolean isEmpty(); char peek(); void addFirst(Character c); void addFirst(String seq); boolean matches(String seq); boolean matchesCS(String seq); boolean matchesAny(String... seq); boolean matchesAny(char... seq); boolean matchesStartTag(); boolean matchChomp(String seq); boolean matchesWhitespace(); boolean matchesWord(); void advance(); char consume(); void consume(String seq); String consumeTo(String seq); String consumeToIgnoreCase(String seq); String consumeToAny(String... seq); String chompTo(String seq); String chompToIgnoreCase(String seq); String chompBalanced(char open, char close); static String unescape(String in); boolean consumeWhitespace(); String consumeWord(); String consumeTagName(); String consumeElementSelector(); String consumeCssIdentifier(); String consumeAttributeKey(); String remainder(); @Override String toString(); }
TokenQueue { public String chompToIgnoreCase(String seq) { String data = consumeToIgnoreCase(seq); matchChomp(seq); return data; } TokenQueue(String data); boolean isEmpty(); char peek(); void addFirst(Character c); void addFirst(String seq); boolean matches(String seq); boolean matchesCS(String seq); boolean matchesAny(String... seq); boolean matchesAny(char... seq); boolean matchesStartTag(); boolean matchChomp(String seq); boolean matchesWhitespace(); boolean matchesWord(); void advance(); char consume(); void consume(String seq); String consumeTo(String seq); String consumeToIgnoreCase(String seq); String consumeToAny(String... seq); String chompTo(String seq); String chompToIgnoreCase(String seq); String chompBalanced(char open, char close); static String unescape(String in); boolean consumeWhitespace(); String consumeWord(); String consumeTagName(); String consumeElementSelector(); String consumeCssIdentifier(); String consumeAttributeKey(); String remainder(); @Override String toString();  }