Function cif::word_wrap

Function Documentation

std::vector<std::string> cif::word_wrap(const std::string &text, size_t width)

custom word wrapping routine.

Wrap the text in text based on a maximum line width width using a dynamic programming approach to get the most efficient filling of the space.