more advanced parsing
This commit is contained in:
@@ -3,13 +3,16 @@
|
||||
|
||||
#include <check/check.h>
|
||||
#include <map>
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
class EmailParser {
|
||||
public:
|
||||
EmailParser();
|
||||
std::map<std::string, std::string> parse(std::string &email_content);
|
||||
std::map<std::string, std::string> parse_file(std::string path);
|
||||
|
||||
std::vector<std::pair<int, int>> find_parts(const boost::regex &start_regex, const boost::regex &end_regex, const std::string &content);
|
||||
std::string find_check_parameters(std::string &part);
|
||||
std::string extract_qr_url_from_img(std::string &part);
|
||||
};
|
||||
|
||||
#endif // CHECKS_PARSER_EMAIL_PARSER
|
||||
|
||||
Reference in New Issue
Block a user