Implements command-line interface, and allows to generate colored html sources, view text files in console window(win32 only) and to check HRC database integrity.
Public Member Functions | |
void | setCopyrightHeader (bool use) |
Is copyright header present in html output. | |
void | setHtmlEscaping (bool use) |
Is HTML characters escaping done by HtmlEscapesWriter class. | |
void | setBomOutput (bool use) |
Is BOM outputted into result stream. | |
void | setHtmlWrapping (bool use) |
Is HTML text header and footer are printed in HTML result. | |
void | setTypeDescription (const String &str) |
Alternative HRC type description for type selection. | |
void | setInputFileName (const String &str) |
File name, used as input source. Could be URL. | |
void | setOutputFileName (const String &str) |
Optional file name, used for output. | |
void | setInputEncoding (const String &str) |
Input Characters Encoding. | |
void | setOutputEncoding (const String &str) |
Output Characters Encoding. | |
void | setCatalogPath (const String &str) |
Optional path to base catalog.xml. | |
void | setHRDName (const String &str) |
Optional HRD instance name, used to perform parsing. | |
void | setLinkSource (const String &str) |
Sets linking datasource into this filename. | |
void | addLineNumbers (bool add) |
If true, result file will have line numbers before each line. | |
void | RETest () |
Regular Expressions tests. | |
void | profile (int loopCount) |
Runs parser in profile mode. | |
void | listTypes (bool load, bool useNames) |
Lists all available HRC types and optionally tries to load them. | |
FileType * | selectType (HRCParser *hrcParser, LineSource *lineSource) |
void | viewFile () |
Views file in console window, using TextConsoleViewer class. | |
void | forward () |
Simply forwards input text to output, using passed encoding information. | |
void | genOutput (bool useTokens=false) |
Generates HTML-ized output of file. | |
void | genTokenOutput () |
|
Regular Expressions tests. Reads RE and expression from stdin, and checks expression against RE. Outputs all matched brackets. |
|
Runs parser in profile mode. Does everything, -h makes, but makes possible repeat loops and produces no output. Prints into standard output number of msecs, used.
|
|
Generates HTML-ized output of file.
Uses |