Initial commit

This commit is contained in:
2026-09-27 01:33:35 +02:00
commit 3ac329a21b
1185 changed files with 543634 additions and 0 deletions

20
src/utils.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include <fstream>
#include <sstream>
#include "utils.hpp"
namespace Fan
{
Opt<std::string> read_entire_file(const std::string& file_path)
{
std::ifstream file(file_path);
if (!file) { return std::nullopt; }
std::ostringstream buffer;
buffer << file.rdbuf();
return buffer.str();
}
} // namespace Fan