Photon 1.0.0
Loading...
Searching...
No Matches
ansi_color_escape< Char > Struct Template Reference

#include <color.h>

Public Member Functions

FMT_CONSTEXPR ansi_color_escape (detail::color_type text_color, const char *esc) noexcept
 
FMT_CONSTEXPR ansi_color_escape (emphasis em) noexcept
 
FMT_CONSTEXPR operator const Char * () const noexcept
 
FMT_CONSTEXPR const Char * begin () const noexcept
 
FMT_CONSTEXPR_CHAR_TRAITS const Char * end () const noexcept
 

Static Private Member Functions

static FMT_CONSTEXPR void to_esc (uint8_t c, Char *out, char delimiter) noexcept
 
static FMT_CONSTEXPR bool has_emphasis (emphasis em, emphasis mask) noexcept
 

Private Attributes

Char buffer [7u+3u *num_emphases+1u]
 

Static Private Attributes

static constexpr size_t num_emphases = 8
 

Constructor & Destructor Documentation

◆ ansi_color_escape() [1/2]

template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char >::ansi_color_escape ( detail::color_type  text_color,
const char *  esc 
)
inlinenoexcept

◆ ansi_color_escape() [2/2]

template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char >::ansi_color_escape ( emphasis  em)
inlinenoexcept

Member Function Documentation

◆ begin()

template<typename Char >
FMT_CONSTEXPR const Char * ansi_color_escape< Char >::begin ( ) const
inlinenoexcept

◆ end()

template<typename Char >
FMT_CONSTEXPR_CHAR_TRAITS const Char * ansi_color_escape< Char >::end ( ) const
inlinenoexcept

◆ has_emphasis()

template<typename Char >
static FMT_CONSTEXPR bool ansi_color_escape< Char >::has_emphasis ( emphasis  em,
emphasis  mask 
)
inlinestaticprivatenoexcept

◆ operator const Char *()

template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char >::operator const Char * ( ) const
inlinenoexcept

◆ to_esc()

template<typename Char >
static FMT_CONSTEXPR void ansi_color_escape< Char >::to_esc ( uint8_t  c,
Char *  out,
char  delimiter 
)
inlinestaticprivatenoexcept

Member Data Documentation

◆ buffer

template<typename Char >
Char ansi_color_escape< Char >::buffer[7u+3u *num_emphases+1u]
private

◆ num_emphases

template<typename Char >
constexpr size_t ansi_color_escape< Char >::num_emphases = 8
staticconstexprprivate

The documentation for this struct was generated from the following file: