9#include "../microfmt.hpp"
22 span<const char> data{};
24 bool escape_quotes{
true};
33 bool escape_quotes =
true) noexcept {
34 return escaped_view{span<const char>(sv.data(), sv.size()), quote, escape_quotes};
39RELOCO_BEGIN_UNSAFE_CODE
41 bool escape_quotes =
true) noexcept {
42 return escaped_view{span<const char>(str, len), quote, escape_quotes};
48RELOCO_BEGIN_UNSAFE_CODE
50 bool escape_quotes =
true) noexcept {
59 bool escape_quotes =
true) noexcept {
62 const size_t len = (N > 0 && arr[N - 1] ==
'\0') ? N - 1 : N;
63 return escaped_view{span<const char>(arr, len), quote, escape_quotes};
68RELOCO_BEGIN_UNSAFE_CODE
71 bool escape_quotes =
true) noexcept {
72 return escaped_view{span<const char>(
reinterpret_cast<const char *
>(arr), N), quote, escape_quotes};
86#if MICROFMT_SHARED_PROVIDE_DEFINITIONS
Definition microfmt.hpp:881
#define MICROFMT_API_CLASS
Definition compat.hpp:181
#define MICROFMT_API
Definition compat.hpp:135
reloco::sink sink
Type-erased, zero-allocation output sink.
Definition microfmt.hpp:46
constexpr escaped_view escaped(microfmt::string_view sv, bool quote=true, bool escape_quotes=true) noexcept
Definition escaped.hpp:32
constexpr bytes_view bytes(uint64_t count) noexcept
Definition format_helpers.hpp:82
RELOCO_END_UNSAFE_CODE
Definition remote_object.hpp:132
Definition escaped.hpp:21