|
| MbsWriteWrapped (std::ostream &out) |
| MbsWriteWrapped (std::ostream &out, size_t wrap_r) |
| MbsWriteWrapped (std::ostream &out, size_t indent_r, size_t wrap_r, int indentFix_r=0) |
size_t | defaultWrap () const |
size_t | defaultIndent () const |
int | defaultIndentFix () const |
size_t | indent () const |
size_t | lpos () const |
bool | atLineBegin () const |
bool | atParBegin () const |
void | resetToParBegin () |
| Reset housekeeping data to the beginning of a paragraph (does not write anything)
|
void | gotoNextPar () |
| Write out any pending word and start a new par (NL unconditionally)
|
void | gotoParBegin () |
| Open a new paragraph if not atParBegin.
|
void | gotoNextLine (size_t count_r=1) |
| Add count_r (1) new lines in this par (BR unconditionally)
|
void | gotoLineBegin () |
| Open a new line in this paragraph if not atLineBegin.
|
void | startPar (boost::string_ref text_r) |
| Write text_r; starting a new paragraph.
|
void | startPar (boost::string_ref text_r, size_t increment_r) |
void | addString (boost::string_ref text_r) |
| Continue writing text at the current position.
|
void | addString (boost::string_ref text_r, size_t increment_r) |
void | writeText (boost::string_ref text_r) |
| Continue writing text (separated by WS if not atLineBegin).
|
void | writeText (boost::string_ref text_r, size_t increment_r) |
void | writePar (boost::string_ref text_r) |
| Write text_r; starting a new paragraph and ending it after the text was written.
|
void | writePar (boost::string_ref text_r, size_t increment_r) |
void | writeDefinition (boost::string_ref tag_r, boost::string_ref text_r, size_t tagincr_r, size_t textincr_r) |
| Write a tag_r with indented definition text_r.
|
void | writeDefinition (boost::string_ref tag_r, boost::string_ref text_r) |
void | writeDefinition (boost::string_ref tag_r, boost::string_ref text_r, size_t tagincr_r, size_t textincr_r, size_t increment_r) |
void | writeDefinition (boost::string_ref tag_r, boost::string_ref text_r, size_t increment_r) |
|
void | write (boost::string_ref text_r, bool leadingWSindents_r=true) |
| Append text_r indented and wrapped at the current position.
|
void | writeout (bool force_r=false) |
| Write any pending "indent/gap+word" and reset for next word.
|
void | _writeoutPending () |
size_t | fixIndent (size_t indent_r) |
| Return fixed indent_r (unsets _indentFix)
|
size_t | saneIncrementIndent (size_t increment_r) |
| Return incremented _indent , but not more than 50% of the remaining line size if wrapped.
|
void | clearIndent () |
| Set default indent at par start (reloads _indentFix )
|
void | clearGap () |
| Set no gaps.
|
void | clearWord () |
| Set no word pending.
|
Write MBString optionally wrapped and indented.
The class assumes the output starts at the beginning of a new term line. Every '
' in text starts a new paragraph (on an new line with default indent).
WS at par begin increments indent for this par.
Use gotoNextLine to open a new indented line without stating a new par.
If MbsWriteWrapped is used in conjunction with plain screen output, you can use resetToParBegin to reset housekeeping data after plain screen output.
Definition at line 260 of file text.h.