HTML Tidy
5.7.28
The HTACG Tidy HTML Project
|
|
Go to the documentation of this file.
58 #define TIDY_PL_SIZE 16
121 typedef struct _tidy_config
162 TidyIterator
TY_(getOptionList)( TidyDocImpl* doc );
170 const TidyOptionImpl*
TY_(getNextOption)( TidyDocImpl* doc, TidyIterator* iter );
178 TidyIterator
TY_(getOptionPickList)(
const TidyOptionImpl* option );
186 ctmbstr TY_(getNextOptionPick)(
const TidyOptionImpl* option, TidyIterator* iter );
189 #if SUPPORT_CONSOLE_APP
202 void TY_(InitConfig)( TidyDocImpl* doc );
208 void TY_(FreeConfig)( TidyDocImpl* doc );
248 void TY_(ResetConfigToDefault)( TidyDocImpl* doc );
255 void TY_(TakeConfigSnapshot)( TidyDocImpl* doc );
261 void TY_(ResetConfigToSnapshot)( TidyDocImpl* doc );
268 void TY_(CopyConfig)( TidyDocImpl* docTo, TidyDocImpl* docFrom );
276 int TY_(ParseConfigFile)( TidyDocImpl* doc,
ctmbstr cfgfil );
286 int TY_(ParseConfigFileEnc)( TidyDocImpl* doc,
335 Bool TY_(AdjustCharEncoding)( TidyDocImpl* doc,
int encoding );
342 Bool TY_(ConfigDiffThanDefault)( TidyDocImpl* doc );
350 Bool TY_(ConfigDiffThanSnapshot)( TidyDocImpl* doc );
359 int TY_(CharEncodingId)( TidyDocImpl* doc,
ctmbstr charenc );
381 void TY_(DeclareListItem)( TidyDocImpl* doc,
const TidyOptionImpl* opt,
ctmbstr name );
391 #define cfg(doc, id) TY_(_cfgGet)( (doc), (id) )
392 #define cfgBool(doc, id) TY_(_cfgGetBool)( (doc), (id) )
393 #define cfgAutoBool(doc, id) TY_(_cfgGetAutoBool)( (doc), (id) )
394 #define cfgStr(doc, id) TY_(_cfgGetString)( (doc), (id) )
401 #define cfg(doc, id) ((doc)->config.value[ (id) ].v)
404 #define cfgBool(doc, id) ((Bool) cfg(doc, id))
407 #define cfgAutoBool(doc, id) ((TidyTriState) cfg(doc, id))
410 #define cfgStr(doc, id) ((ctmbstr) (doc)->config.value[ (id) ].p)
TidyOptionId opt
Identifier.
Definition: config.h:134
PickListItems * pickList
The picklist of possible values for this option.
Definition: config.h:104
This structure defines the internal representation of a Tidy option.
Definition: config.h:97
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
StreamIn * cfgIn
Current input source for reading options.
Definition: config.h:127
@ N_TIDY_OPTIONS
Must be last.
Definition: tidyenum.h:684
This type defines an output destination capable of accepting raw bytes of output.
Definition: tidy.h:1129
TidyOptionType type
The date type for the option.
Definition: config.h:101
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
TidyOptionId id
The unique identifier for this option.
Definition: config.h:98
Stored option values can be one of two internal types.
Definition: config.h:112
TidyOptionId
Option IDs are used used to get and/or set configuration option values and retrieve their description...
Definition: tidyenum.h:572
ulong dflt
Default value for TidyInteger and TidyBoolean.
Definition: config.h:102
const PickListItem PickListItems[TIDY_PL_SIZE]
An array of PickListItems, fixed in size for in-code declarations.
Definition: config.h:78
ctmbstr name
The name of the option.
Definition: config.h:100
const int value
The option value represented by this label.
Definition: config.h:67
TidyOptionId const * links
Cross references.
Definition: config.h:135
char * p
Value for TidyString.
Definition: config.h:114
ctmbstr inputs[10]
String values that can select this value.
Definition: config.h:68
uint c
Current char in input stream for reading options.
Definition: config.h:126
ctmbstr pdflt
Default value for TidyString.
Definition: config.h:105
Used to build a table of documentation cross-references.
Definition: config.h:133
ulong v
Value for TidyInteger and TidyBoolean.
Definition: config.h:113
TidyOptionType
A Tidy configuration option can have one of these data types.
Definition: tidyenum.h:705
#define TY_(str)
Definition: forward.h:23
TidyConfigCategory
Categories of Tidy configuration options, which are used mostly by user interfaces to sort Tidy optio...
Definition: tidyenum.h:698
TidyTriState
AutoBool values used by ParseBool, ParseTriState, ParseIndent, ParseBOM.
Definition: tidyenum.h:724
uint defined_tags
Tracks user-defined tags.
Definition: config.h:125
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
#define TIDY_PL_SIZE
Determines the maximum number of items in an option's picklist.
Definition: config.h:58
ctmbstr label
PickList label for this item.
Definition: config.h:66