Provide utilities to manipulate configuration options for output.
| Data Structures | |
| struct | AllOption_t | 
| Array holding all options.  More... | |
| struct | OptionDesc | 
| Structure maintains a description of a configuration ption.  More... | |
| Typedefs | |
| typedef void(* | OptionFunc) (TidyDoc, TidyOption, OptionDesc *) | 
| A type for a function pointer for a function used to print out options descriptions.  More... | |
| Functions | |
| static int | cmpOpt (const void *e1_, const void *e2_) | 
| A simple option comparator, used for sorting the options.  More... | |
| static ctmbstr | ConfigCategoryId (TidyConfigCategory id) | 
| Returns the configuration category id for the specified configuration category id.  More... | |
| static void | ForEachOption (TidyDoc tdoc, OptionFunc OptionPrint) | 
| An iterator for the unsorted options.  More... | |
| static void | ForEachSortedOption (TidyDoc tdoc, OptionFunc OptionPrint) | 
| An iterator for the sorted options.  More... | |
| static void | GetOption (TidyDoc tdoc, TidyOption topt, OptionDesc *d) | 
| Create OptionDesc "d" related to "opt".  More... | |
| static void | getSortedOption (TidyDoc tdoc, AllOption_t *tOption) | 
| Returns options sorted.  More... | |
| static Bool | hasPickList (TidyOption topt) | 
| Utility to determine if an option has a picklist.  More... | |
| static void | PrintAllowedValues (TidyOption topt, const OptionDesc *d) | 
| Prints an option's allowed values.  More... | |
| static void | PrintAllowedValuesFromPick (TidyOption topt) | 
| Prints an option's allowed value as specified in its pick list.  More... | |
| struct AllOption_t | 
Array holding all options.
Contains a trailing sentinel.
| Data Fields | ||
|---|---|---|
| TidyOption | topt[N_TIDY_OPTIONS] | |
| struct OptionDesc | 
Structure maintains a description of a configuration ption.
| Data Fields | ||
|---|---|---|
| ctmbstr | cat | Category. | 
| uint | catid | Category ID. | 
| ctmbstr | def | default | 
| Bool | haveVals | if yes, vals is valid | 
| ctmbstr | name | Name. | 
| tmbchar | tempdefs[80] | storage for default such as integer | 
| ctmbstr | type | "String, ... | 
| ctmbstr | vals | Potential values. If NULL, use an external function | 
| typedef void(* OptionFunc) (TidyDoc, TidyOption, OptionDesc *) | 
A type for a function pointer for a function used to print out options descriptions.
| TidyDoc | The document. | 
| TidyOption | The Tidy option. | 
| OptionDesc | A pointer to the option description structure. | 
| 
 | static | 
A simple option comparator, used for sorting the options.
| e1_ | Item A to compare. | 
| e2_ | Item B to compare. | 
| 
 | static | 
Returns the configuration category id for the specified configuration category id.
This will be used as an XML class attribute value.
| id | The TidyConfigCategory for which to lookup the category name. | 
| 
 | static | 
An iterator for the unsorted options.
| tdoc | The Tidy document. | 
| OptionPrint | The printing function to be used. | 
| 
 | static | 
An iterator for the sorted options.
| tdoc | The Tidy document. | 
| OptionPrint | The printing function to be used. | 
| 
 | static | 
Create OptionDesc "d" related to "opt".
| tdoc | The tidy document. | |
| topt | The option to create a description for. | |
| [out] | d | The new option description. | 
| 
 | static | 
Returns options sorted.
| tdoc | The Tidy document. | |
| [out] | tOption | The list of options. | 
| 
 | static | 
Utility to determine if an option has a picklist.
| topt | The option to check. | 
| 
 | static | 
Prints an option's allowed values.
| topt | The Tidy option. | 
| d | The OptionDesc for the option. | 
| 
 | static | 
Prints an option's allowed value as specified in its pick list.
| topt | The Tidy option. |