HTML Tidy  5.7.0
The HTACG Tidy HTML Project
Output Helping Functions

Detailed Description

This group functions that aid the formatting of output.

Functions

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...
 

Function Documentation

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
sstarting point of desired string to output
offsetcolumn width desired
sbufthe buffer to output
static void print1Column ( const char *  fmt,
uint  l1,
const char *  c1 
)
static

Outputs one column of text.

Parameters
fmtThe format string for formatting the output.
l1The width of the column.
c1The content of the column.
static void print2Columns ( const char *  fmt,
uint  l1,
uint  l2,
const char *  c1,
const char *  c2 
)
static

Outputs two columns of text.

Parameters
fmtThe format string for formatting the output.
l1The width of column 1.
l2The width of column 2.
c1The contents of column 1.
c2The contents of column 2.
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
fmtThe three column format string.
l1Width of column 1.
l2Width of column 2.
l3Width of column 3.
c1Content of column 1.
c2Content of column 2.
c3Content of column 3.
static void unknownOption ( TidyDoc  tdoc,
uint  c 
)
static

Provides the unknown option output to the current errout.

Parameters
tdocThe Tidy document.
cThe unknown option.