mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
Use std filesystem (#3284)
* Use std::filesystem for path names and impl
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
std::size_t count_files(const std::string &folder);
|
||||
|
||||
@@ -9,9 +10,10 @@ void prepare_logdir();
|
||||
|
||||
std::string file_contents(const std::string &filename);
|
||||
|
||||
std::size_t count_lines(const std::string &filename);
|
||||
//std::size_t count_lines(const std::string &filename);
|
||||
std::size_t count_lines(const std::filesystem::path &filename);
|
||||
|
||||
void require_message_count(const std::string &filename, const std::size_t messages);
|
||||
void require_message_count(const std::filesystem::path &filename, const std::size_t messages);
|
||||
|
||||
std::size_t get_filesize(const std::string &filename);
|
||||
|
||||
|
Reference in New Issue
Block a user