libzypp  17.35.16
ztui::CCString< _ctxt > Struct Template Reference

#include <zypp-tui/utils/colors.h>

Inheritance diagram for ztui::CCString< _ctxt >:

Public Member Functions

 CCString ()
 
 CCString (const std::string &str_r)
 
 CCString (std::string &&str_r)
 
- Public Member Functions inherited from ztui::ansi::ColorString
 ColorString ()
 
 ColorString (Color color_r)
 Ctor from color. More...
 
 ColorString (const std::string &str_r)
 Ctor from string. More...
 
 ColorString (std::string &&str_r)
 
 ColorString (const std::string &str_r, Color color_r)
 Ctor from string and color. More...
 
 ColorString (std::string &&str_r, Color color_r)
 
 ColorString (Color color_r, const std::string &str_r)
 Ctor from color and string. More...
 
 ColorString (Color color_r, std::string &&str_r)
 
ColorStringoperator= (const std::string &str_r)
 Assign new string. More...
 
ColorStringoperator= (std::string &&str_r)
 
ColorStringoperator<< (const ColorString &rhs)
 Append a ColorString. More...
 
ColorStringoperator<< (const std::string &str_r)
 Append a string. More...
 
ColorStringoperator= (Color color_r)
 Assign Color. More...
 
ColorStringoperator<= (Color color_r)
 Update Color. More...
 
ColorString operator() (Color color_r) const
 Return a copy with different color. More...
 
Color color () const
 Return strings Color. More...
 
bool empty () const
 Whether the underlying string is empty. More...
 
std::string::size_type size () const
 Size of the underlying string. More...
 
std::string str () const
 Return the colored string if do_colors. More...
 
std::string asString () const
 
std::string str (Color color_r) const
 Return the string rendered in a differernt color if do_colors. More...
 
const std::string & plainstr () const
 Return the underlying plain string. More...
 
std::string & plainstr ()
 Return the underlying plain string. More...
 
const std::string & operator* () const
 Access the underlying plain string via operator*. More...
 
std::string & operator* ()
 Access the underlying plain string via operator*. More...
 

Additional Inherited Members

Detailed Description

template<ColorContext _ctxt>
struct ztui::CCString< _ctxt >

Definition at line 66 of file colors.h.

Constructor & Destructor Documentation

◆ CCString() [1/3]

template<ColorContext _ctxt>
ztui::CCString< _ctxt >::CCString ( )
inline

Definition at line 68 of file colors.h.

◆ CCString() [2/3]

template<ColorContext _ctxt>
ztui::CCString< _ctxt >::CCString ( const std::string &  str_r)
inlineexplicit

Definition at line 69 of file colors.h.

◆ CCString() [3/3]

template<ColorContext _ctxt>
ztui::CCString< _ctxt >::CCString ( std::string &&  str_r)
inlineexplicit

Definition at line 70 of file colors.h.


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