#include <fit_text.h>
Public Member Functions | |
| fit_text (const char *str, const char *ellipsis="**") | |
Public Attributes | |
| std::string | m_text |
| std::string | m_ellipsis |
Friends | |
| std::ostream & | operator<< (std::ostream &, const fit_text &) |
If string is shorter or the same length than current output width the string is aligned.
If string is longer than current output width the beginning and end of string is inserted into stream with ellipsis inserted.
Definition at line 18 of file fit_text.h.
|
||||||||||||
|
Definition at line 6 of file fit_text.cpp. References m_ellipsis, m_text, and safe_assign(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 12 of file fit_text.cpp. |
|
|
Definition at line 24 of file fit_text.h. Referenced by fit_text(), and operator<<(). |
|
|
Definition at line 23 of file fit_text.h. Referenced by fit_text(), and operator<<(). |
1.4.3