Source-highlight Library
|
Given TextStyle objects build a new one, adding a starting part, and ending part, and separating them. More...
#include <textstylebuilder.h>
Public Member Functions | |
TextStyleBuilder (const std::string &st="", const std::string &sep="") | |
void | start () |
void | add (const TextStyle &textStyle) |
TextStyle | end () |
Private Attributes | |
std::string | start_ |
std::string | separator_ |
TextStyle | buffer |
where we store intermediate results | |
bool | added |
whether we've already added something | |
Given TextStyle objects build a new one, adding a starting part, and ending part, and separating them.