3#include "terminalpp/detail/export.hpp"
13using byte = std::uint8_t;
20using bytes = std::span<byte const>;
24using byte_storage = std::basic_string<byte>;
28using coordinate_type = std::int32_t;
30inline namespace literals {
33inline byte operator""_tb(
char const text)
35 return static_cast<byte>(text);
39inline byte_storage
operator""_tb(
char const *text,
size_t length)
42 result.reserve(length);
44 for (
auto const ch : std::span{text, length})
46 result.push_back(
static_cast<byte>(ch));
55inline byte_storage to_bytes(std::string
const &str)
58 result.reserve(str.size());
60 for (
auto const ch : str)
62 result.push_back(
static_cast<byte>(ch));