Move mimetypeCounter parsing in its own function.

This commit is contained in:
Matthieu Gautier
2020-10-28 14:08:06 +01:00
parent d546ae38c4
commit 4407dd12bd
3 changed files with 29 additions and 17 deletions

View File

@ -22,6 +22,8 @@
#include <string>
#include <vector>
#include <map>
#include <zim/zim.h>
namespace pugi {
class xml_node;
@ -41,6 +43,8 @@ namespace kiwix
const std::string& tagName);
bool convertStrToBool(const std::string& value);
using MimeCounterType = std::map<const std::string, zim::article_index_type>;
MimeCounterType parseMimetypeCounter(const std::string& counterData);
}
#endif