MCPcopy Create free account
hub / github.com/apache/thrift / TextAttributes

Class TextAttributes

compiler/cpp/tests/catch/catch.hpp:4120–4137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4118#endif
4119
4120 struct TextAttributes {
4121 TextAttributes()
4122 : initialIndent( std::string::npos ),
4123 indent( 0 ),
4124 width( consoleWidth-1 ),
4125 tabChar( '\t' )
4126 {}
4127
4128 TextAttributes& setInitialIndent( std::size_t _value ) { initialIndent = _value; return *this; }
4129 TextAttributes& setIndent( std::size_t _value ) { indent = _value; return *this; }
4130 TextAttributes& setWidth( std::size_t _value ) { width = _value; return *this; }
4131 TextAttributes& setTabChar( char _value ) { tabChar = _value; return *this; }
4132
4133 std::size_t initialIndent; // indent of first line, or npos
4134 std::size_t indent; // indent of subsequent lines, or all if initialIndent is npos
4135 std::size_t width; // maximum width of text, including indent. Longer text will wrap
4136 char tabChar; // If this char is seen the indent is changed to current pos
4137 };
4138
4139 class Text {
4140 public:

Callers 8

TextMethod · 0.85
optUsageMethod · 0.85
listTagsFunction · 0.85
listReportersFunction · 0.85
applyCommandLineMethod · 0.85
printMessageMethod · 0.85
printHeaderStringMethod · 0.85

Calls

no outgoing calls

Tested by 8

TextMethod · 0.68
optUsageMethod · 0.68
listTagsFunction · 0.68
listReportersFunction · 0.68
applyCommandLineMethod · 0.68
printMessageMethod · 0.68
printHeaderStringMethod · 0.68