SoPlex Documentation
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) FMT_NOEXCEPT
 
FMT_CONSTEXPR ansi_color_escape (emphasis em) FMT_NOEXCEPT
 
FMT_CONSTEXPR operator const Char * () const FMT_NOEXCEPT
 
FMT_CONSTEXPR const Char * begin () const FMT_NOEXCEPT
 
FMT_CONSTEXPR const Char * end () const FMT_NOEXCEPT
 

Static Private Member Functions

static FMT_CONSTEXPR void to_esc (uint8_t c, Char *out, char delimiter) FMT_NOEXCEPT
 

Private Attributes

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

Detailed Description

template<typename Char>
struct detail::ansi_color_escape< Char >

Definition at line 355 of file color.h.

Constructor & Destructor Documentation

◆ ansi_color_escape() [1/2]

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

◆ ansi_color_escape() [2/2]

template<typename Char >
FMT_CONSTEXPR ansi_color_escape ( emphasis em)

Definition at line 392 of file color.h.

References bold, detail::index, italic, strikethrough, and underline.

Member Function Documentation

◆ begin()

template<typename Char >
FMT_CONSTEXPR const Char * begin ( ) const

Definition at line 413 of file color.h.

References ansi_color_escape< Char >::buffer.

◆ end()

template<typename Char >
FMT_CONSTEXPR const Char * end ( ) const

Definition at line 414 of file color.h.

◆ operator const Char *()

template<typename Char >
FMT_CONSTEXPR operator const Char * ( ) const

Definition at line 411 of file color.h.

References ansi_color_escape< Char >::buffer.

◆ to_esc()

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

Definition at line 421 of file color.h.

Referenced by ansi_color_escape< Char >::ansi_color_escape().

Member Data Documentation

◆ buffer

template<typename Char >
Char buffer[7u+3u *4u+1u]
private