Implements TextGeneratorIntf for an OutputDocInterface stream.
More...
#include <src/util.h>
Implements TextGeneratorIntf for an OutputDocInterface stream.
Definition at line 76 of file util.h.
◆ TextGeneratorOLImpl()
TextGeneratorOLImpl::TextGeneratorOLImpl |
( |
OutputList & | ol | ) |
|
◆ writeBreak()
void TextGeneratorOLImpl::writeBreak |
( |
int | indent | ) |
const |
|
overridevirtual |
◆ writeLink()
void TextGeneratorOLImpl::writeLink |
( |
const QCString & | extRef, |
|
|
const QCString & | file, |
|
|
const QCString & | anchor, |
|
|
std::string_view | text ) const |
|
overridevirtual |
◆ writeString()
void TextGeneratorOLImpl::writeString |
( |
std::string_view | s, |
|
|
bool | keepSpaces ) const |
|
overridevirtual |
Implements TextGeneratorIntf.
Definition at line 108 of file util.cpp.
109{
110 if (
s.empty())
return;
111
112 if (keepSpaces)
113 {
114 char cs[2];
115 cs[1]='\0';
117 {
119 if (c==' ')
120 {
121 m_ol.writeNonBreakableSpace(1);
122 }
123 else
124 {
125 cs[0]=c;
127 }
128 }
129 }
130 else
131 {
132 m_ol.docify(QCString(
s));
133 }
134}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
References i, m_ol, and s.
◆ m_ol
The documentation for this class was generated from the following files: