Skip to content

Commit

Permalink
added ParserDom::parseTree with two arguments: const char* cchStartHt…
Browse files Browse the repository at this point in the history
…ml, const char* cchEndStart
  • Loading branch information
vm2mv committed Oct 18, 2023
1 parent fb4682d commit 6fb3248
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions html/ParserDom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ const tree<HTML::Node>& ParserDom::parseTree(const std::string &html)
this->parse(html);
return this->getTree();
}

const tree<HTML::Node>& ParserDom::parseTree(const char* cchStartHtml, const char* cchEndStart)
{
this->parse(cchStartHtml, cchEndStart);
return this->getTree();
}

void ParserDom::beginParsing()
{
mHtmlTree.clear();
Expand Down
1 change: 1 addition & 0 deletions html/ParserDom.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace htmlcxx
~ParserDom() {}

const tree<Node> &parseTree(const std::string &html);
const tree<Node>& parseTree(const char* cchStartHtml, const char* cchEndStart);
const tree<Node> &getTree()
{ return mHtmlTree; }

Expand Down

0 comments on commit 6fb3248

Please sign in to comment.