Scippy

SoPlex

Sequential object-oriented simPlex

ansi_color_escape< Char > Struct Template Reference

#include <color.h>

Public Member Functions

FMT_CONSTEXPR ansi_color_escape (internal::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 internal::ansi_color_escape< Char >

Definition at line 355 of file color.h.

Constructor & Destructor Documentation

◆ ansi_color_escape() [1/2]

FMT_CONSTEXPR ansi_color_escape ( internal::color_type  text_color,
const char *  esc 
)

◆ ansi_color_escape() [2/2]

Definition at line 392 of file color.h.

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

Member Function Documentation

◆ begin()

FMT_CONSTEXPR const Char* begin ( ) const

Definition at line 413 of file color.h.

◆ end()

FMT_CONSTEXPR const Char* end ( ) const

Definition at line 414 of file color.h.

◆ operator const Char *()

FMT_CONSTEXPR operator const Char * ( ) const

Definition at line 411 of file color.h.

◆ to_esc()

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

Definition at line 421 of file color.h.

Member Data Documentation

◆ buffer

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

Definition at line 419 of file color.h.