flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 12:39:24 -05:00
commit fa54be052a
315 changed files with 49791 additions and 0 deletions

25
tjp/core/file/write.hpp Normal file
View File

@@ -0,0 +1,25 @@
// TJP COPYRIGHT HEADER
#pragma once
#include "Contents.h"
#include <tjp/core/string/String.hpp>
#include <tjp/core/containers/Optional.hpp>
namespace tjp::core::file {
struct WriteOptions {
time_t lastModifiedTime = 0;
} ;
bool write(const String &path, const ContentsView &, const WriteOptions &options = {});
void require_write(const String &path, const ContentsView &, const WriteOptions &options = {});
bool write(const StringView &path, const ContentsView &, const WriteOptions &options = {});
void require_write(const StringView &path, const ContentsView &, const WriteOptions &options = {});
} // namespace
#ifdef TJP_CORE_HEADER_ONLY
#include "write.cpp"
#endif