Class word_wrapper
Defined in File text.hpp
Inheritance Relationships
Base Type
public std::vector< std::string_view >
Class Documentation
-
class word_wrapper : public std::vector<std::string_view>
Simplified line breaking code taken from a decent text editor. In this case, simplified means it only supports ASCII. The algorithm uses dynamic programming to find the optimal separation in lines.
Public Functions
-
inline word_wrapper(std::string_view text, size_t width)
-
inline word_wrapper(std::string_view text, size_t width)