Go to the source code of this file.
Data Structures | |
| struct | TidyOptionImpl |
| struct | TidyConfigImpl |
| struct | TidyOptionDoc |
| union | TidyOptionValue |
Macros | |
| #define | cfg(doc, id) ((doc)->config.value[ (id) ].v) |
| #define | cfgAutoBool(doc, id) ((TidyTriState) cfg(doc, id)) |
| #define | cfgBool(doc, id) ((Bool) cfg(doc, id)) |
| #define | cfgStr(doc, id) ((ctmbstr) (doc)->config.value[ (id) ].p) |
Typedefs | |
| typedef Bool( | ParseProperty )(TidyDocImpl *doc, const TidyOptionImpl *opt) |
Functions | |
| Bool | TY_❪AdjustCharEncoding❫ (TidyDocImpl *doc, int encoding) |
| int | TY_❪CharEncodingId❫ (TidyDocImpl *doc, ctmbstr charenc) |
| ctmbstr | TY_❪CharEncodingName❫ (int encoding) |
| ctmbstr | TY_❪CharEncodingOptName❫ (int encoding) |
| Bool | TY_❪ConfigDiffThanDefault❫ (TidyDocImpl *doc) |
| Bool | TY_❪ConfigDiffThanSnapshot❫ (TidyDocImpl *doc) |
| void | TY_❪CopyConfig❫ (TidyDocImpl *docTo, TidyDocImpl *docFrom) |
| void | TY_❪FreeConfig❫ (TidyDocImpl *doc) |
| ctmbstr | TY_❪getNextOptionPick❫ (const TidyOptionImpl *option, TidyIterator *iter) |
| const TidyOptionImpl * | TY_❪getNextOption❫ (TidyDocImpl *doc, TidyIterator *iter) |
| TidyIterator | TY_❪getOptionList❫ (TidyDocImpl *doc) |
| TidyIterator | TY_❪getOptionPickList❫ (const TidyOptionImpl *option) |
| const TidyOptionImpl * | TY_❪getOption❫ (TidyOptionId optId) |
| void | TY_❪InitConfig❫ (TidyDocImpl *doc) |
| const TidyOptionImpl * | TY_❪lookupOption❫ (ctmbstr optnam) |
| const TidyOptionDoc * | TY_❪OptGetDocDesc❫ (TidyOptionId optId) |
| int | TY_❪ParseConfigFileEnc❫ (TidyDocImpl *doc, ctmbstr cfgfil, ctmbstr charenc) |
| int | TY_❪ParseConfigFile❫ (TidyDocImpl *doc, ctmbstr cfgfil) |
| Bool | TY_❪ParseConfigOption❫ (TidyDocImpl *doc, ctmbstr optnam, ctmbstr optVal) |
| Bool | TY_❪ParseConfigValue❫ (TidyDocImpl *doc, TidyOptionId optId, ctmbstr optVal) |
| void | TY_❪ResetConfigToDefault❫ (TidyDocImpl *doc) |
| void | TY_❪ResetConfigToSnapshot❫ (TidyDocImpl *doc) |
| Bool | TY_❪ResetOptionToDefault❫ (TidyDocImpl *doc, TidyOptionId optId) |
| int | TY_❪SaveConfigFile❫ (TidyDocImpl *doc, ctmbstr cfgfil) |
| int | TY_❪SaveConfigSink❫ (TidyDocImpl *doc, TidyOutputSink *sink) |
| Bool | TY_❪SetOptionBool❫ (TidyDocImpl *doc, TidyOptionId optId, Bool val) |
| Bool | TY_❪SetOptionInt❫ (TidyDocImpl *doc, TidyOptionId optId, ulong val) |
| void | TY_❪TakeConfigSnapshot❫ (TidyDocImpl *doc) |
| struct _tidy_option |
| Data Fields | ||
|---|---|---|
| TidyConfigCategory | category | |
| ulong | dflt | |
| TidyOptionId | id | |
| ctmbstr | name | |
| ParseProperty * | parser | |
| ctmbstr | pdflt | |
| const ctmbstr * | pickList | |
| TidyOptionType | type | |
| struct TidyConfigImpl |
| Data Fields | ||
|---|---|---|
| uint | c | |
| StreamIn * | cfgIn | |
| uint | defined_tags | |
| TidyOptionValue | snapshot[N_TIDY_OPTIONS+1] | |
| TidyOptionValue | value[N_TIDY_OPTIONS+1] | |
| struct TidyOptionDoc |
| Data Fields | ||
|---|---|---|
| TidyOptionId const * | links |
Cross references. Last element must be 'TidyUnknownOption'. |
| TidyOptionId | opt | Identifier. |
| #define cfg | ( | doc, | |
| id | |||
| ) | ((doc)->config.value[ (id) ].v) |
| #define cfgAutoBool | ( | doc, | |
| id | |||
| ) | ((TidyTriState) cfg(doc, id)) |
| #define cfgStr | ( | doc, | |
| id | |||
| ) | ((ctmbstr) (doc)->config.value[ (id) ].p) |
| typedef Bool( ParseProperty)(TidyDocImpl *doc, const TidyOptionImpl *opt) |
| Bool TY_❪AdjustCharEncoding❫ | ( | TidyDocImpl * | doc, |
| int | encoding | ||
| ) |
| int TY_❪CharEncodingId❫ | ( | TidyDocImpl * | doc, |
| ctmbstr | charenc | ||
| ) |
| ctmbstr TY_❪CharEncodingName❫ | ( | int | encoding | ) |
| ctmbstr TY_❪CharEncodingOptName❫ | ( | int | encoding | ) |
| Bool TY_❪ConfigDiffThanDefault❫ | ( | TidyDocImpl * | doc | ) |
| Bool TY_❪ConfigDiffThanSnapshot❫ | ( | TidyDocImpl * | doc | ) |
| void TY_❪CopyConfig❫ | ( | TidyDocImpl * | docTo, |
| TidyDocImpl * | docFrom | ||
| ) |
| void TY_❪FreeConfig❫ | ( | TidyDocImpl * | doc | ) |
| ctmbstr TY_❪getNextOptionPick❫ | ( | const TidyOptionImpl * | option, |
| TidyIterator * | iter | ||
| ) |
| const TidyOptionImpl* TY_❪getNextOption❫ | ( | TidyDocImpl * | doc, |
| TidyIterator * | iter | ||
| ) |
| TidyIterator TY_❪getOptionList❫ | ( | TidyDocImpl * | doc | ) |
| TidyIterator TY_❪getOptionPickList❫ | ( | const TidyOptionImpl * | option | ) |
| const TidyOptionImpl* TY_❪getOption❫ | ( | TidyOptionId | optId | ) |
| void TY_❪InitConfig❫ | ( | TidyDocImpl * | doc | ) |
| const TidyOptionImpl* TY_❪lookupOption❫ | ( | ctmbstr | optnam | ) |
| const TidyOptionDoc* TY_❪OptGetDocDesc❫ | ( | TidyOptionId | optId | ) |
| int TY_❪ParseConfigFile❫ | ( | TidyDocImpl * | doc, |
| ctmbstr | cfgfil | ||
| ) |
| Bool TY_❪ParseConfigValue❫ | ( | TidyDocImpl * | doc, |
| TidyOptionId | optId, | ||
| ctmbstr | optVal | ||
| ) |
| void TY_❪ResetConfigToDefault❫ | ( | TidyDocImpl * | doc | ) |
| void TY_❪ResetConfigToSnapshot❫ | ( | TidyDocImpl * | doc | ) |
| Bool TY_❪ResetOptionToDefault❫ | ( | TidyDocImpl * | doc, |
| TidyOptionId | optId | ||
| ) |
| int TY_❪SaveConfigFile❫ | ( | TidyDocImpl * | doc, |
| ctmbstr | cfgfil | ||
| ) |
| int TY_❪SaveConfigSink❫ | ( | TidyDocImpl * | doc, |
| TidyOutputSink * | sink | ||
| ) |
| Bool TY_❪SetOptionBool❫ | ( | TidyDocImpl * | doc, |
| TidyOptionId | optId, | ||
| Bool | val | ||
| ) |
| Bool TY_❪SetOptionInt❫ | ( | TidyDocImpl * | doc, |
| TidyOptionId | optId, | ||
| ulong | val | ||
| ) |
| void TY_❪TakeConfigSnapshot❫ | ( | TidyDocImpl * | doc | ) |