21 static_assert(
N > 1,
"a CharBuf needs room for at least one character and a NUL");
55 std::string
Str()
const {
return std::string(
View()); }
static std::string ReadFile(const std::filesystem::path &path)
A value for a fixed engine character array (char m_name[N]).
CharBuf & operator=(const char *text) noexcept
CharBuf & operator=(std::string_view text) noexcept
CharBuf(std::string_view text) noexcept
void Assign(std::string_view text) noexcept
CharBuf(const char *text) noexcept
bool Empty() const noexcept
std::string_view View() const noexcept