58 #define TIDY_PL_SIZE 16
121 typedef struct _tidy_config
170 TY_PRIVATE const TidyOptionImpl*
TY_(getNextOption)( TidyDocImpl* doc, TidyIterator* iter );
178 TY_PRIVATE TidyIterator
TY_(getOptionPickList)(
const TidyOptionImpl* option );
189 #if SUPPORT_CONSOLE_APP
268 TY_PRIVATE void TY_(CopyConfig)( TidyDocImpl* docTo, TidyDocImpl* docFrom );
349 void TY_(AdjustConfig)( TidyDocImpl* doc );
405 #define cfg(doc, id) TY_(_cfgGet)( (doc), (id) )
406 #define cfgBool(doc, id) TY_(_cfgGetBool)( (doc), (id) )
407 #define cfgAutoBool(doc, id) TY_(_cfgGetAutoBool)( (doc), (id) )
408 #define cfgStr(doc, id) TY_(_cfgGetString)( (doc), (id) )
415 #define cfg(doc, id) ((doc)->config.value[ (id) ].v)
418 #define cfgBool(doc, id) ((Bool) cfg(doc, id))
421 #define cfgAutoBool(doc, id) ((TidyTriState) cfg(doc, id))
424 #define cfgStr(doc, id) ((ctmbstr) (doc)->config.value[ (id) ].p)
#define TY_PRIVATE
Definition: forward.h:29
#define TY_(str)
Definition: forward.h:23
This type defines an output destination capable of accepting raw bytes of output.
Definition: tidy.h:1129
TidyOptionId id
The unique identifier for this option.
Definition: config.h:98
uint c
Current char in input stream for reading options.
Definition: config.h:126
ctmbstr inputs[10]
String values that can select this value.
Definition: config.h:68
const int value
The option value represented by this label.
Definition: config.h:67
ulong dflt
Default value for TidyInteger and TidyBoolean.
Definition: config.h:102
ctmbstr label
PickList label for this item.
Definition: config.h:66
ctmbstr name
The name of the option.
Definition: config.h:100
ulong v
Value for TidyInteger and TidyBoolean.
Definition: config.h:113
TidyOptionId opt
Identifier.
Definition: config.h:134
char * p
Value for TidyString.
Definition: config.h:114
StreamIn * cfgIn
Current input source for reading options.
Definition: config.h:127
TidyConfigCategory category
The category of the option.
Definition: config.h:99
ParseProperty * parser
Function to parse input; read-only if NULL.
Definition: config.h:103
ctmbstr pdflt
Default value for TidyString.
Definition: config.h:105
PickListItems * pickList
The picklist of possible values for this option.
Definition: config.h:104
TidyOptionType type
The date type for the option.
Definition: config.h:101
uint defined_tags
Tracks user-defined tags.
Definition: config.h:125
TidyOptionId const * links
Cross references.
Definition: config.h:135
#define TIDY_PL_SIZE
Determines the maximum number of items in an option's picklist.
Definition: config.h:58
Bool() ParseProperty(TidyDocImpl *doc, const TidyOptionImpl *opt)
This typedef describes a function that is used for parsing the input given for a particular Tidy opti...
Definition: config.h:91
const PickListItem PickListItems[TIDY_PL_SIZE]
An array of PickListItems, fixed in size for in-code declarations.
Definition: config.h:78
Structs of this type contain information needed in order to present picklists, relate picklist entrie...
Definition: config.h:65
This type is used to define a structure for keeping track of the values for each option.
Definition: config.h:122
Used to build a table of documentation cross-references.
Definition: config.h:133
This structure defines the internal representation of a Tidy option.
Definition: config.h:97
Stored option values can be one of two internal types.
Definition: config.h:112
TidyConfigCategory
Categories of Tidy configuration options, which are used mostly by user interfaces to sort Tidy optio...
Definition: tidyenum.h:699
TidyOptionId
Option IDs are used used to get and/or set configuration option values and retrieve their description...
Definition: tidyenum.h:573
TidyTriState
AutoBool values used by ParseBool, ParseTriState, ParseIndent, ParseBOM.
Definition: tidyenum.h:725
TidyOptionType
A Tidy configuration option can have one of these data types.
Definition: tidyenum.h:706
@ N_TIDY_OPTIONS
Must be last.
Definition: tidyenum.h:685
Defines HTML Tidy public API implemented by LibTidy.