|
wxMaxima
|
Splits plain text output into the pieces it may be broken into lines between. More...
Functions | |
| bool | wxm::IsTextBreakChar (wxUniChar ch) |
| Is a line break allowed after this character? | |
| std::vector< wxString > | wxm::SplitAtTextBreaks (const wxString &line) |
| Split one line of text (no newlines) after the characters a line may be broken after. | |
Splits plain text output into the pieces it may be broken into lines between.
See TextBreaks.h.
| bool wxm::IsTextBreakChar | ( | wxUniChar | ch | ) |
Is a line break allowed after this character?
True for a space, a tab, "+", "-", ",", ";", ".", "*" and "/".
| std::vector< wxString > wxm::SplitAtTextBreaks | ( | const wxString & | line | ) |
Split one line of text (no newlines) after the characters a line may be broken after.
Concatenating the pieces always gives back line unchanged. The character that allows the break stays at the end of the piece before the break. A run of such characters stays together (", " breaks after the space, "--" after the second "-"), and the line isn't broken