making WEB

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-11 00:45:17 +03:00
1 parent d146f11f02
commit 5c036d91fb
72 files changed
+5875 -1243

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <cstddef>
#include <string>
#include <string_view>
#include <vector>
namespace Echoion::Core::Util
{
// Split `text` into pages no larger than `limit` bytes each, breaking on
// line boundaries where possible and hard-splitting over-long lines on a
// UTF-8 code-point boundary. Every returned page is <= `limit` bytes, so a
// caller can append a short footer and still stay under the transport's
// single-message cap. Returns a single element when `text` already fits.
std::vector<std::string> paginate(std::string_view text, std::size_t limit);
} // namespace Echoion::Core::Util