This group functions that aid the formatting of output.
|
static const char * | cutToWhiteSpace (const char *s, uint offset, char *sbuf) |
| Used by print1Column , print2Columns and print3Columns to manage wrapping text within columns. More...
|
|
static void | print1Column (const char *fmt, uint l1, const char *c1) |
| Outputs one column of text. More...
|
|
static void | print2Columns (const char *fmt, uint l1, uint l2, const char *c1, const char *c2) |
| Outputs two columns of text. More...
|
|
static void | print3Columns (const char *fmt, uint l1, uint l2, uint l3, const char *c1, const char *c2, const char *c3) |
| Outputs three columns of text. More...
|
|
static void | unknownOption (TidyDoc tdoc, uint c) |
| Provides the unknown option output to the current errout. More...
|
|
◆ cutToWhiteSpace()
static const char* cutToWhiteSpace |
( |
const char * |
s, |
|
|
uint |
offset, |
|
|
char * |
sbuf |
|
) |
| |
|
static |
Used by print1Column
, print2Columns
and print3Columns
to manage wrapping text within columns.
- Returns
- The pointer to the next part of the string to output.
- Parameters
-
s | starting point of desired string to output |
offset | column width desired |
sbuf | the buffer to output |
◆ print1Column()
static void print1Column |
( |
const char * |
fmt, |
|
|
uint |
l1, |
|
|
const char * |
c1 |
|
) |
| |
|
static |
Outputs one column of text.
- Parameters
-
fmt | The format string for formatting the output. |
l1 | The width of the column. |
c1 | The content of the column. |
◆ print2Columns()
static void print2Columns |
( |
const char * |
fmt, |
|
|
uint |
l1, |
|
|
uint |
l2, |
|
|
const char * |
c1, |
|
|
const char * |
c2 |
|
) |
| |
|
static |
Outputs two columns of text.
- Parameters
-
fmt | The format string for formatting the output. |
l1 | The width of column 1. |
l2 | The width of column 2. |
c1 | The contents of column 1. |
c2 | The contents of column 2. |
◆ print3Columns()
static void print3Columns |
( |
const char * |
fmt, |
|
|
uint |
l1, |
|
|
uint |
l2, |
|
|
uint |
l3, |
|
|
const char * |
c1, |
|
|
const char * |
c2, |
|
|
const char * |
c3 |
|
) |
| |
|
static |
Outputs three columns of text.
- Parameters
-
fmt | The three column format string. |
l1 | Width of column 1. |
l2 | Width of column 2. |
l3 | Width of column 3. |
c1 | Content of column 1. |
c2 | Content of column 2. |
c3 | Content of column 3. |
◆ unknownOption()
Provides the unknown option
output to the current errout.
- Parameters
-
tdoc | The Tidy document. |
c | The unknown option. |