Clean up some tests.
This commit is contained in:
parent
b17ba8b3a7
commit
c102ebb6da
64 changed files with 615 additions and 541 deletions
|
@ -9,22 +9,22 @@ MarkdownParser::MarkdownParser()
|
|||
|
||||
}
|
||||
|
||||
void MarkdownParser::ProcessLine(const std::string& line)
|
||||
void MarkdownParser::processLine(const std::string& line)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MarkdownParser::Run(const std::string& content)
|
||||
void MarkdownParser::run(const std::string& content)
|
||||
{
|
||||
std::stringstream ss(content);
|
||||
std::string line;
|
||||
while (std::getline(ss, line, '\n'))
|
||||
{
|
||||
ProcessLine(line);
|
||||
processLine(line);
|
||||
}
|
||||
}
|
||||
|
||||
HtmlDocumentPtr MarkdownParser::GetHtml()
|
||||
HtmlDocumentPtr MarkdownParser::getHtml()
|
||||
{
|
||||
return mHtmlDocument;
|
||||
}
|
||||
|
|
|
@ -14,17 +14,16 @@ class MarkdownParser
|
|||
None
|
||||
};
|
||||
|
||||
|
||||
DocumentState mDocumentState {DocumentState::None};
|
||||
HtmlDocumentPtr mHtmlDocument;
|
||||
|
||||
public:
|
||||
|
||||
MarkdownParser();
|
||||
|
||||
HtmlDocumentPtr GetHtml();
|
||||
HtmlDocumentPtr getHtml();
|
||||
|
||||
void ProcessLine(const std::string& line);
|
||||
void processLine(const std::string& line);
|
||||
|
||||
void Run(const std::string& content);
|
||||
void run(const std::string& content);
|
||||
|
||||
private:
|
||||
DocumentState mDocumentState {DocumentState::None};
|
||||
HtmlDocumentPtr mHtmlDocument;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue