diff --git a/lib/util.h b/lib/util.h index 6a3c9ca..f773d94 100644 --- a/lib/util.h +++ b/lib/util.h @@ -3,8 +3,28 @@ #include +/** + * @brief Remove all white space after the content. + * + * @author Hayden Hargreaves (hhargreaves2006@gmail.com) + */ void removeTrailingWhitespace(std::string &input); + +/** + * @brief Remove all white space before the content. + * + * @author Hayden Hargreaves (hhargreaves2006@gmail.com) + */ void removeLeadingWhitespace(std::string &input); + +/** + * @brief Remove all white space before and after the content. + * + * This uses the removeTrailingWhitespace and the removeLeadingWhitespace + * methods together on the same string. + * + * @author Hayden Hargreaves (hhargreaves2006@gmail.com) + */ void removeWhitespace(std::string &input); #endif diff --git a/syntax.md b/syntax.md index a44c791..d965dfd 100644 --- a/syntax.md +++ b/syntax.md @@ -36,3 +36,10 @@ this is a break, because it ends with two spaces ->

However
this is a b Double returns also yields new paragraphs ->

Double returns also

yields new paragraphs

+ + +*italic* -> italic +**bold** -> bold +***italic bold*** -> italic bold + +hello **world** -> [TextClass: hello, BoldClass: world]