Horizon
Loading...
Searching...
No Matches
Catch::TextFlow::Column Class Reference

Represents a column of text with specific width and indentation. More...

#include <catch_amalgamated.hpp>

Classes

class  const_iterator
 Iterates "lines" in Column and return sthem. More...

Public Types

using iterator = const_iterator

Public Member Functions

 Column (std::string const &text)
Column & width (size_t newWidth)
Column & indent (size_t newIndent)
Column & initialIndent (size_t newIndent)
size_t width () const
const_iterator begin () const
const_iterator end () const
Columns operator+ (Column const &other)

Friends

std::ostream & operator<< (std::ostream &os, Column const &col)

Detailed Description

Represents a column of text with specific width and indentation.

When written out to a stream, it will perform linebreaking of the provided text so that the written lines fit within target width.


The documentation for this class was generated from the following files: