28 #include <QtCore/QTextStream> 32 , _includeTrailingWhitespace(true)
63 plainText.reserve(count);
65 int outputCount = count;
71 for (
int i = count-1 ;
i >= 0 ;
i--)
80 for (
int i=0;
i<outputCount;
i++)
91 ,_innerSpanOpen(
false)
133 for (
int i=0;
i<count;
i++)
154 style.append(
"font-weight:bold;");
158 style.append(
"font-decoration:underline;");
196 text.append(
" ");
213 text.append( QString(
"<span style=\"%1\">").
arg(style) );
218 text.append(
"</span>");
An entry in a terminal display's color palette.
void closeSpan(QString &text)
const ColorEntry * _colorTable
static const ColorEntry base_color_table[(2 *(2+8))]
#define DEFAULT_RENDITION
A single character in the terminal which consists of a unicode character value, foreground and backgr...
unsigned char LineProperty
void openSpan(QString &text, const QString &style)
bool trailingWhitespace() const
Returns whether trailing whitespace at the end of lines is included in the output.
QColor color(const ColorEntry *palette) const
Returns the color within the specified color .
write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special characters
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)
Converts a line of terminal characters with associated properties into a text string and writes the s...
CharacterColor _lastForeColor
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)
Converts a line of terminal characters with associated properties into a text string and writes the s...
bool _includeTrailingWhitespace
virtual void end()
End decoding.
OCTAVE_EXPORT octave_value_list the first data row corresponds to an index of zero The a spreadsheet style form such as the file is read until end of file is reached The such as text
void setTrailingWhitespace(bool enable)
Set whether trailing whitespace at the end of lines should be included in the output.
virtual void end()
End decoding.
HTMLDecoder()
Constructs an HTML decoder using a default black-on-white color scheme.
virtual void begin(QTextStream *output)
Begin decoding characters.
CharacterColor _lastBackColor
virtual void begin(QTextStream *output)
Begin decoding characters.
void setColorTable(const ColorEntry *table)
Sets the colour table which the decoder uses to produce the HTML colour codes in its output...
nd example oindent assigns the value of the alert character(control-g, ASCII code 7) to the string variable ode