Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
detail::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 auto begin () const noexcept -> const Char *
 
FMT_CONSTEXPR_CHAR_TRAITS auto end () const noexcept -> const Char *
 
FMT_CONSTEXPR operator const Char * () const noexcept
 

Static Private Member Functions

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

Private Attributes

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

Static Private Attributes

static constexpr size_t num_emphases = 8
 

Detailed Description

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

Definition at line 332 of file color.h.

Constructor & Destructor Documentation

◆ ansi_color_escape() [1/2]

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

Definition at line 333 of file color.h.

◆ ansi_color_escape() [2/2]

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

Definition at line 369 of file color.h.

Member Function Documentation

◆ begin()

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

Definition at line 392 of file color.h.

◆ end()

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

Definition at line 393 of file color.h.

◆ has_emphasis()

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

Definition at line 408 of file color.h.

◆ operator const Char *()

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

Definition at line 390 of file color.h.

◆ to_esc()

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

Definition at line 401 of file color.h.

Member Data Documentation

◆ buffer

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

Definition at line 399 of file color.h.

◆ num_emphases

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

Definition at line 398 of file color.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51