9#include "../microfmt.hpp"
52RELOCO_BEGIN_UNSAFE_CODE
54 return static_cast<attribute>(
static_cast<uint8_t
>(a) |
static_cast<uint8_t
>(b));
59 return (
static_cast<uint8_t
>(a) &
static_cast<uint8_t
>(b)) != 0;
191#if MICROFMT_SHARED_PROVIDE_DEFINITIONS
211template <
typename T>
struct formatter<ansi::styled_view<T>> {
220 inner_fmt.parse(dummy_ctx);
221 inner_fmt.format(sv.value, out);
Definition microfmt.hpp:881
#define MICROFMT_API_CLASS
Definition compat.hpp:181
#define MICROFMT_API
Definition compat.hpp:135
constexpr style bg_yellow
Definition ansi.hpp:106
MICROFMT_API void emit_reset(const sink &out) noexcept
constexpr style fg_red
Definition ansi.hpp:83
constexpr style bg_blue
Definition ansi.hpp:107
constexpr style fg_green
Definition ansi.hpp:84
constexpr style fg_yellow
Definition ansi.hpp:85
constexpr styled_view< T > gray(const T &val) noexcept
Definition ansi.hpp:185
attribute
Definition ansi.hpp:41
constexpr style fg_bright_yellow
Definition ansi.hpp:96
constexpr style italic
Definition ansi.hpp:126
constexpr style bg_black
Definition ansi.hpp:103
constexpr style bg_bright_black
Definition ansi.hpp:114
constexpr style bg_bright_white
Definition ansi.hpp:121
constexpr style fg_bright_red
Definition ansi.hpp:94
constexpr style fg_cyan
Definition ansi.hpp:88
constexpr styled_view< T > styled(const T &val, style st) noexcept
Definition ansi.hpp:153
constexpr style bg_bright_yellow
Definition ansi.hpp:117
constexpr style bg_red
Definition ansi.hpp:104
color
Definition ansi.hpp:19
constexpr style bold
Definition ansi.hpp:124
constexpr style info_style
Definition ansi.hpp:135
constexpr style fg_bright_blue
Definition ansi.hpp:97
constexpr style fg_gray
Definition ansi.hpp:92
constexpr style fg_blue
Definition ansi.hpp:86
constexpr style bg_cyan
Definition ansi.hpp:109
RELOCO_BEGIN_UNSAFE_CODE constexpr attribute operator|(attribute a, attribute b) noexcept
Definition ansi.hpp:53
constexpr style fg_black
Definition ansi.hpp:82
constexpr style bg_magenta
Definition ansi.hpp:108
constexpr style fg_bright_cyan
Definition ansi.hpp:99
constexpr style reverse
Definition ansi.hpp:129
constexpr style fg_bright_white
Definition ansi.hpp:100
constexpr style fg_magenta
Definition ansi.hpp:87
constexpr style bg_bright_magenta
Definition ansi.hpp:119
constexpr style fg_white
Definition ansi.hpp:89
constexpr style warn_style
Definition ansi.hpp:133
RELOCO_END_UNSAFE_CODE constexpr bool operator&(attribute a, attribute b) noexcept
Definition ansi.hpp:58
constexpr style bg_green
Definition ansi.hpp:105
constexpr style blink
Definition ansi.hpp:128
constexpr style reset
Definition ansi.hpp:79
constexpr style fg_bright_green
Definition ansi.hpp:95
constexpr style bg_bright_blue
Definition ansi.hpp:118
constexpr style fg_bright_magenta
Definition ansi.hpp:98
constexpr style bg_gray
Definition ansi.hpp:113
constexpr style bg_bright_red
Definition ansi.hpp:115
constexpr style ok_style
Definition ansi.hpp:134
constexpr style fg_bright_black
Definition ansi.hpp:93
constexpr style bg_white
Definition ansi.hpp:110
constexpr style underline
Definition ansi.hpp:127
constexpr style bg_bright_cyan
Definition ansi.hpp:120
constexpr style bg_bright_green
Definition ansi.hpp:116
constexpr style dim
Definition ansi.hpp:125
constexpr style error_style
Definition ansi.hpp:132
MICROFMT_API void emit_style(const style &s, const sink &out) noexcept
reloco::sink sink
Type-erased, zero-allocation output sink.
Definition microfmt.hpp:46
RELOCO_END_UNSAFE_CODE
Definition remote_object.hpp:132
static bool colors_enabled
Definition ansi.hpp:72
const T & value
Definition ansi.hpp:149
style st
Definition ansi.hpp:150