2016-04-20 16:57:49 +08:00
|
|
|
#pragma once
|
|
|
|
|
2018-03-09 21:26:33 +08:00
|
|
|
#include <cstddef>
|
2016-04-20 16:57:49 +08:00
|
|
|
#include <string>
|
|
|
|
|
2019-09-15 23:34:29 +08:00
|
|
|
std::size_t count_files(const std::string &folder);
|
|
|
|
|
2016-04-20 16:57:49 +08:00
|
|
|
void prepare_logdir();
|
|
|
|
|
2018-03-09 21:26:33 +08:00
|
|
|
std::string file_contents(const std::string &filename);
|
2016-04-20 16:57:49 +08:00
|
|
|
|
2018-03-09 21:26:33 +08:00
|
|
|
std::size_t count_lines(const std::string &filename);
|
2016-04-20 16:57:49 +08:00
|
|
|
|
2020-02-05 05:23:36 +08:00
|
|
|
void require_message_count(const std::string &filename, const std::size_t messages);
|
|
|
|
|
2018-03-09 21:26:33 +08:00
|
|
|
std::size_t get_filesize(const std::string &filename);
|
2016-04-20 16:57:49 +08:00
|
|
|
|
2018-03-09 21:26:33 +08:00
|
|
|
bool ends_with(std::string const &value, std::string const &ending);
|