|
HTML Tidy
5.7.28
The HTACG Tidy HTML Project
|
|
Go to the documentation of this file.
152 #ifndef DOXYGEN_SHOULD_SKIP_THIS
256 #ifndef DOXYGEN_SHOULD_SKIP_THIS
258 void* (
TIDY_CALL *
realloc)(TidyAllocator *
self,
void *block,
size_t nBytes );
276 void *
free(TidyAllocator *
self,
1064 #define EndOfStream (~0u)
1078 typedef struct _TidyInputSource
1128 typedef struct _TidyOutputSink
2062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Instances of this type represent messages generated by Tidy in reference to your document.
TidyMessageArgument TIDY_CALL tidyGetNextMessageArgument(TidyMessage tmessage, TidyIterator *iter)
Given a valid TidyIterator initiated with tidyGetMessageArguments(), returns an instance of the opaqu...
int TIDY_CALL tidyParseFile(TidyDoc tdoc, ctmbstr filename)
Parse markup in named file.
void * sinkData
Output context.
Definition: tidy.h:1130
TidyNode TIDY_CALL tidyGetRoot(TidyDoc tdoc)
Get the root node.
int TIDY_CALL tidySetCharEncoding(TidyDoc tdoc, ctmbstr encnam)
Set the input/output character encoding for parsing markup.
uint TIDY_CALL tidyAccessWarningCount(TidyDoc tdoc)
Indicates the number of TidyAccess messages that were generated.
TidyNode TIDY_CALL tidyGetChild(TidyNode tnod)
Get the child of the indicated node.
Instances of this represent a Tidy configuration option, which contains useful data about these optio...
int TIDY_CALL tidyReportDoctype(TidyDoc tdoc)
Reports the document type into the output sink.
TidyOptionId TIDY_CALL tidyOptGetId(TidyOption opt)
Get ID of given Option.
TidyDoc TIDY_CALL tidyGetMessageDoc(TidyMessage tmessage)
Get the tidy document this message comes from.
int TIDY_CALL tidyDetectedHtmlVersion(TidyDoc tdoc)
Gets the version of HTML that was output, as an integer, times 100.
int TIDY_CALL tidySaveString(TidyDoc tdoc, tmbstr buffer, uint *buflen)
Save the tidy document to an application buffer.
TidyPutByteFunc putByte
Pointer to "put byte" callback.
Definition: tidy.h:1132
Bool TIDY_CALL tidyOptResetToSnapshot(TidyDoc tdoc)
Apply a snapshot of config settings to a document.
Bool TIDY_CALL tidySetMallocCall(TidyMalloc fmalloc)
Give Tidy a malloc() replacement.
void TIDY_CALL tidySetAppData(TidyDoc tdoc, void *appData)
Allows the host application to store a chunk of data with each TidyDoc instance.
This structure is the function table for an allocator.
Definition: tidy.h:254
TidyIterator TIDY_CALL tidyOptGetMutedMessageList(TidyDoc tdoc)
Initiates an iterator for a list of muted messages.
int TIDY_CALL tidyCleanAndRepair(TidyDoc tdoc)
Execute configured cleanup and repair operations on parsed markup.
ctmbstr TIDY_CALL tidyLocalizedStringN(uint messageType, uint quantity)
Provides a string given messageType in the current localization for quantity.
void * sourceData
Input context.
Definition: tidy.h:1080
TidyNode TIDY_CALL tidyGetPrev(TidyNode tnod)
Get the previous sibling node.
uint TIDY_CALL getNextErrorCode(TidyIterator *iter)
Given a valid TidyIterator initiated with getErrorCodeList(), returns an instance of the opaque type ...
TidyIterator TIDY_CALL getErrorCodeList(void)
Initiates an iterator for a list of message codes available in Tidy.
uint TIDY_CALL tidyGetArgValueUInt(TidyMessage tmessage, TidyMessageArgument *arg)
Returns the unsigned integer value of the given message argument.
ctmbstr TIDY_CALL tidyOptGetEncName(TidyDoc tdoc, TidyOptionId optId)
Get character encoding name.
int TIDY_CALL tidyParseString(TidyDoc tdoc, ctmbstr content)
Parse markup in given string.
int TIDY_CALL tidyGetArgValueInt(TidyMessage tmessage, TidyMessageArgument *arg)
Returns the integer value of the given message argument.
void TIDY_CALL tidyUngetByte(TidyInputSource *source, uint byteValue)
Helper: unget byte back to input source.
Instances of this represent a Tidy document, which encapsulates everything there is to know about a s...
TidyAttrId
Known HTML attributes.
Definition: tidyenum.h:1018
ctmbstr TIDY_CALL tidyOptGetNextPriorityAttr(TidyDoc tdoc, TidyIterator *iter)
Given a valid TidyIterator initiated with tidyOptGetPriorityAttrList(), returns a string representing...
ctmbstr TIDY_CALL TidyLangPosixName(const tidyLocaleMapItem *item)
Given a tidyLocaleMapItem, return the POSIX name.
TidyReportLevel
Message severity level, used throughout LibTidy to indicate the severity or status of a message.
Definition: tidyenum.h:1380
TidyTagId TIDY_CALL tidyNodeGetId(TidyNode tnod)
Get the tag ID of the node.
int TIDY_CALL tidySetInCharEncoding(TidyDoc tdoc, ctmbstr encnam)
Set the input encoding for parsing markup.
Bool TIDY_CALL tidyDetectedXhtml(TidyDoc tdoc)
Indicates whether the output document is or isn't XHTML.
int TIDY_CALL tidySaveBuffer(TidyDoc tdoc, TidyBuffer *buf)
Save the tidy document to given TidyBuffer object.
TidyIterator TIDY_CALL tidyOptGetPickList(TidyOption opt)
Initiates an iterator for a list of TidyOption pick-list values, which allows you iterate through all...
uint TIDY_CALL tidyGetMessageCode(TidyMessage tmessage)
Get the message code.
ctmbstr TIDY_CALL tidyGetArgValueString(TidyMessage tmessage, TidyMessageArgument *arg)
Returns the string value of the given message argument.
Bool TIDY_CALL tidySetFreeCall(TidyFree ffree)
Give Tidy a free() replacement.
Bool(TIDY_CALL * TidyReportFilter)(TidyDoc tdoc, TidyReportLevel lvl, uint line, uint col, ctmbstr mssg)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1221
ctmbstr TIDY_CALL tidyGetEmacsFile(TidyDoc tdoc)
Get the file path to use for reports when TidyEmacs is being used.
Bool TIDY_CALL tidySetMessageCallback(TidyDoc tdoc, TidyMessageCallback filtCallback)
This function informs Tidy to use the specified callback to send reports.
A TidyBuffer is chunk of memory that can be used for multiple I/O purposes within Tidy.
Definition: tidybuffio.h:37
void TIDY_CALL tidySetEmacsFile(TidyDoc tdoc, ctmbstr filePath)
Set the file path to use for reports when TidyEmacs is being used.
int TIDY_CALL tidyOptSaveSink(TidyDoc tdoc, TidyOutputSink *sink)
Save current settings to given output sink.
int TIDY_CALL tidySetErrorSink(TidyDoc tdoc, TidyOutputSink *sink)
Set error sink to given generic sink.
TidyIterator TIDY_CALL getWindowsLanguageList(void)
Initiates an iterator for a list of Tidy's Windows<->POSIX locale mappings.
TidyDoc TIDY_CALL tidyCreateWithAllocator(TidyAllocator *allocator)
Create a document supplying your own, custom TidyAllocator instead of using the built-in default.
This type defines an output destination capable of accepting raw bytes of output.
Definition: tidy.h:1129
Bool TIDY_CALL tidyOptResetToDefault(TidyDoc tdoc, TidyOptionId opt)
Reset option to default value by ID.
ctmbstr TIDY_CALL tidyOptGetNextDeclTag(TidyDoc tdoc, TidyOptionId optId, TidyIterator *iter)
Given a valid TidyIterator initiated with tidyOptGetDeclTagList(), returns a string representing a us...
ctmbstr TIDY_CALL tidyGetMessageFormatDefault(TidyMessage tmessage)
Get the default format string, which is the format string for the message in Tidy's default localizat...
ctmbstr TIDY_CALL tidyOptGetDefault(TidyOption opt)
Get default value of given Option as a string.
TidyFormatParameterType TIDY_CALL tidyGetArgType(TidyMessage tmessage, TidyMessageArgument *arg)
Returns the TidyFormatParameterType of the given message argument.
uint TIDY_CALL tidyGetByte(TidyInputSource *source)
Helper: get next byte from input source.
Bool TIDY_CALL tidySetPrettyPrinterCallback(TidyDoc tdoc, TidyPPProgress callback)
This function informs Tidy to use the specified callback for tracking the pretty-printing process pro...
void(TIDY_CALL * TidyFree)(void *buf)
Callback for free replacement.
Definition: tidy.h:303
TidyOption TIDY_CALL tidyOptGetNextDocLinks(TidyDoc tdoc, TidyIterator *pos)
Given a valid TidyIterator initiated with tidyOptGetDocLinksList(), returns a TidyOption instance.
void *(TIDY_CALL * TidyRealloc)(void *buf, size_t len)
Callback for realloc replacement.
Definition: tidy.h:300
int(TIDY_CALL * TidyGetByteFunc)(void *sourceData)
Input Callback: get next byte of input.
Definition: tidy.h:1067
int TIDY_CALL tidyGetMessageLine(TidyMessage tmessage)
Get the line number the message applies to.
Bool TIDY_CALL tidyInitSource(TidyInputSource *source, void *srcData, TidyGetByteFunc gbFunc, TidyUngetByteFunc ugbFunc, TidyEOFFunc endFunc)
Facilitates user defined source by providing an entry point to marshal pointers-to-functions.
TidyNode TIDY_CALL tidyGetParent(TidyNode tnod)
Get the parent of the indicated node.
int TIDY_CALL tidyParseBuffer(TidyDoc tdoc, TidyBuffer *buf)
Parse markup in given buffer.
ctmbstr TIDY_CALL tidyOptGetNextMutedMessage(TidyDoc tdoc, TidyIterator *iter)
Given a valid TidyIterator initiated with tidyOptGetMutedMessageList(), returns a string representing...
TidyAttr TIDY_CALL tidyAttrGetById(TidyNode tnod, TidyAttrId attId)
Get an instance of TidyAttr by specifying an attribute ID.
ctmbstr TIDY_CALL tidyAttrValue(TidyAttr tattr)
Get the value of a TidyAttr instance.
FILE *TIDY_CALL tidySetErrorFile(TidyDoc tdoc, ctmbstr errfilnam)
Set error sink to named file.
Bool TIDY_CALL tidyAttrIsEvent(TidyAttr tattr)
Indicates whether or not a given attribute is an event attribute.
ulong TIDY_CALL tidyOptGetInt(TidyDoc tdoc, TidyOptionId optId)
Get current option value as an integer.
ctmbstr TIDY_CALL tidyGetMessageKey(TidyMessage tmessage)
Get the message key string.
int TIDY_CALL tidyParseSource(TidyDoc tdoc, TidyInputSource *source)
Parse markup in given generic input source.
int TIDY_CALL tidySaveStdout(TidyDoc tdoc)
Save the tidy document to standard output (FILE*).
Bool TIDY_CALL tidyNodeIsHeader(TidyNode tnod)
Indicates whether or not a node represents and HTML header element, such as h1, h2,...
void TIDY_CALL tidyRelease(TidyDoc tdoc)
Free all memory and release the TidyDoc.
ctmbstr TIDY_CALL TidyLangWindowsName(const tidyLocaleMapItem *item)
Given a tidyLocaleMapItem, return the Windows name.
Bool TIDY_CALL tidySetReportFilter(TidyDoc tdoc, TidyReportFilter filtCallback)
This function informs Tidy to use the specified callback to send reports.
Bool TIDY_CALL tidyOptGetDefaultBool(TidyOption opt)
Get default value of given Option as a Boolean value.
Instances of this type represent the arguments that compose part of the message represented by TidyMe...
ctmbstr TIDY_CALL tidyPlatform(void)
Get the platform for which Tidy was built.
ulong TIDY_CALL tidyOptGetDefaultInt(TidyOption opt)
Get default value of given Option as an unsigned integer.
Bool TIDY_CALL tidyOptGetBool(TidyDoc tdoc, TidyOptionId optId)
Get current option value as a Boolean flag.
TidyGetByteFunc getByte
Pointer to "get byte" callback.
Definition: tidy.h:1082
Bool TIDY_CALL tidyFileExists(TidyDoc tdoc, ctmbstr filename)
Determine whether or not a particular file exists.
Bool(TIDY_CALL * TidyMessageCallback)(TidyMessage tmessage)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1286
int TIDY_CALL tidySaveFile(TidyDoc tdoc, ctmbstr filename)
Save the tidy document to the named file.
ctmbstr TIDY_CALL tidyGetMessageOutput(TidyMessage tmessage)
Get the complete message as Tidy would emit it in the current localization.
Bool TIDY_CALL tidyDetectedGenericXml(TidyDoc tdoc)
Indicates whether or not the input document was XML.
TidyNode TIDY_CALL tidyDiscardElement(TidyDoc tdoc, TidyNode tnod)
Remove the indicated node.
ctmbstr TIDY_CALL getNextInstalledLanguage(TidyIterator *iter)
Given a valid TidyIterator initiated with getInstalledLanguageList(), returns a string representing a...
Attributes of a TidyNode are represented by this data type.
int TIDY_CALL tidyStatus(TidyDoc tdoc)
Get status of current document.
const tidyLocaleMapItem *TIDY_CALL getNextWindowsLanguage(TidyIterator *iter)
Given a valid TidyIterator initiated with getWindowsLanguageList(), returns a pointer to a tidyLocale...
void(TIDY_CALL * TidyConfigChangeCallback)(TidyDoc tdoc, TidyOption option)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:616
ctmbstr TIDY_CALL tidyGetLanguage(void)
Gets the current language used by Tidy.
TidyTagId
Known HTML element types.
Definition: tidyenum.h:856
uint TIDY_CALL tidyErrorCodeFromKey(ctmbstr code)
Given a text key representing a message code, return the uint that represents it.
Bool TIDY_CALL tidyOptResetAllToDefault(TidyDoc tdoc)
Reset all options to their default values.
Bool TIDY_CALL tidyOptSetValue(TidyDoc tdoc, TidyOptionId optId, ctmbstr val)
Set the option value as a string.
TidyNode TIDY_CALL tidyGetNext(TidyNode tnod)
Get the next sibling node.
uint TIDY_CALL tidyNodeColumn(TidyNode tnod)
Get the column location of the node.
ctmbstr TIDY_CALL tidyOptGetDoc(TidyDoc tdoc, TidyOption opt)
Get the description of the specified option.
Bool TIDY_CALL tidySetReallocCall(TidyRealloc frealloc)
Give Tidy a realloc() replacement.
TidyOptionId
Option IDs are used used to get and/or set configuration option values and retrieve their description...
Definition: tidyenum.h:572
TidyOption TIDY_CALL tidyGetOptionByName(TidyDoc tdoc, ctmbstr optnam)
Returns an instance of TidyOption by providing the name of a Tidy configuration option.
void *TIDY_CALL tidyGetAppData(TidyDoc tdoc)
Returns the data previously stored with tidySetAppData().
TidyUngetByteFunc ungetByte
Pointer to "unget" callback.
Definition: tidy.h:1083
ctmbstr TIDY_CALL tidyGetMessageOutputDefault(TidyMessage tmessage)
Get the complete message as Tidy would emit it in the default localization.
Bool TIDY_CALL tidySetReportCallback(TidyDoc tdoc, TidyReportCallback filtCallback)
This function informs Tidy to use the specified callback to send reports.
TidyIterator TIDY_CALL tidyOptGetDocLinksList(TidyDoc tdoc, TidyOption opt)
Initiates an iterator for a list of options related to a given option.
void ** alloc(TidyAllocator *self, size_t nBytes)
Called to allocate a block of nBytes of memory.
ctmbstr TIDY_CALL tidyGetMessageFormat(TidyMessage tmessage)
Get the localized format string.
ctmbstr TIDY_CALL tidyGetMessagePosDefault(TidyMessage tmessage)
Get the position part part of the message in the default language.
void * panic(TidyAllocator *self, ctmbstr msg)
Called when a panic condition is detected.
int TIDY_CALL tidySetErrorBuffer(TidyDoc tdoc, TidyBuffer *errbuf)
Set error sink to given buffer.
void(TIDY_CALL * TidyUngetByteFunc)(void *sourceData, byte bt)
Input Callback: unget a byte of input.
Definition: tidy.h:1070
ctmbstr TIDY_CALL tidyErrorCodeAsKey(uint code)
Given a message code, return the text key that represents it.
int TIDY_CALL tidyLoadConfig(TidyDoc tdoc, ctmbstr configFile)
Load an ASCII Tidy configuration file and set the configuration per its contents.
Separated public enumerations header providing important indentifiers for LibTidy and internal users,...
Bool TIDY_CALL tidyOptDiffThanDefault(TidyDoc tdoc)
Any settings different than default?
Bool TIDY_CALL tidyOptIsReadOnly(TidyOption opt)
Is Option read-only? Some options (mainly internal use only options) are read-only.
ctmbstr TIDY_CALL tidyGetMessagePrefixDefault(TidyMessage tmessage)
Get the prefix part of a message in the default language.
Bool TIDY_CALL tidyIsEOF(TidyInputSource *source)
Helper: check if input source at end.
TidyIterator TIDY_CALL tidyOptGetDeclTagList(TidyDoc tdoc)
Initiates an iterator for a list of user-declared tags, including autonomous custom tags detected in ...
int TIDY_CALL tidyLoadConfigEnc(TidyDoc tdoc, ctmbstr configFile, ctmbstr charenc)
Load a Tidy configuration file with the specified character encoding, and set the configuration per i...
Bool TIDY_CALL tidyNodeIsProp(TidyDoc tdoc, TidyNode tnod)
Indicates whether or not the node is a propriety type.
Tidy's built-in default allocator.
Definition: tidy.h:246
void ** realloc(TidyAllocator *self, void *block, size_t nBytes)
Called to resize (grow, in general) a block of memory.
Bool TIDY_CALL tidySetOptionCallback(TidyDoc tdoc, TidyOptCallback pOptCallback)
Applications using TidyLib may want to augment command-line and configuration file options.
Bool TIDY_CALL tidySetPanicCall(TidyPanic fpanic)
Give Tidy an "out of memory" handler.
Bool(TIDY_CALL * TidyConfigCallback)(TidyDoc tdoc, ctmbstr option, ctmbstr value)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:597
Bool TIDY_CALL tidySetLanguage(ctmbstr languageCode)
Tells Tidy to use a different language for output.
ctmbstr TIDY_CALL tidyLocalizedString(uint messageType)
Provides a string given messageType in the current localization for the single case.
TidyEOFFunc eof
Pointer to "eof" callback.
Definition: tidy.h:1084
TidyOptionType TIDY_CALL tidyOptGetType(TidyOption opt)
Get datatype of given Option.
int TIDY_CALL tidyOptSaveFile(TidyDoc tdoc, ctmbstr cfgfil)
Save current settings to named file.
TidyFormatParameterType
Indicates the data type of a format string parameter used when Tidy emits reports and dialogue as par...
Definition: tidyenum.h:1400
ctmbstr TIDY_CALL tidyGetArgFormat(TidyMessage tmessage, TidyMessageArgument *arg)
Returns the format specifier of the given message argument.
uint TIDY_CALL tidyConfigErrorCount(TidyDoc tdoc)
Indicates the number of configuration error messages that were generated.
int TIDY_CALL tidySetOutCharEncoding(TidyDoc tdoc, ctmbstr encnam)
Set the input encoding for writing markup.
Bool(TIDY_CALL * TidyOptCallback)(ctmbstr option, ctmbstr value)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:573
ctmbstr TIDY_CALL tidyOptGetNextPick(TidyOption opt, TidyIterator *pos)
Given a valid TidyIterator initiated with tidyOptGetPickList(), returns a string representing a possi...
TidyOptionId TIDY_CALL tidyOptGetIdForName(ctmbstr optnam)
Returns the TidyOptionId (enum value) by providing the name of a Tidy configuration option.
ctmbstr TIDY_CALL tidyOptGetName(TidyOption opt)
Get name of given Option.
int TIDY_CALL tidyGetMessageColumn(TidyMessage tmessage)
Get the column the message applies to.
uint TIDY_CALL tidyWarningCount(TidyDoc tdoc)
Indicates the number of TidyWarning messages that were generated.
TidyOption TIDY_CALL tidyGetOption(TidyDoc tdoc, TidyOptionId optId)
Retrieves an instance of TidyOption given a valid TidyOptionId.
Bool TIDY_CALL tidySetConfigCallback(TidyDoc tdoc, TidyConfigCallback pConfigCallback)
Applications using TidyLib may want to augment command-line and configuration file options.
double TIDY_CALL tidyGetArgValueDouble(TidyMessage tmessage, TidyMessageArgument *arg)
Returns the double value of the given message argument.
Bool TIDY_CALL tidyOptSetInt(TidyDoc tdoc, TidyOptionId optId, ulong val)
Set option value as an integer.
TidyIterator TIDY_CALL tidyOptGetPriorityAttrList(TidyDoc tdoc)
Initiates an iterator for a list of priority attributes.
ctmbstr TIDY_CALL tidyLibraryVersion(void)
Get the version number for the current library.
ctmbstr TIDY_CALL tidyGetMessageDefault(TidyMessage tmessage)
Get the message with the format string already completed, in Tidy's default localization.
Bool(TIDY_CALL * TidyEOFFunc)(void *sourceData)
Input Callback: is end of input?
Definition: tidy.h:1073
TidyAttrId TIDY_CALL tidyAttrGetId(TidyAttr tattr)
Get the attribute ID given a tidy attribute.
ctmbstr TIDY_CALL tidyNodeGetName(TidyNode tnod)
Get the name of the node.
TidyIterator TIDY_CALL tidyGetOptionList(TidyDoc tdoc)
Initiates an iterator for a list of TidyOption instances, which allows you to iterate through all of ...
TidyIterator TIDY_CALL getStringKeyList(void)
Initiates an iterator for a list of string key codes available in Tidy.
TidyConfigCategory TIDY_CALL tidyOptGetCategory(TidyOption opt)
Get category of given Option.
uint TIDY_CALL tidyErrorCount(TidyDoc tdoc)
Indicates the number of TidyError messages that were generated.
Bool TIDY_CALL tidyOptSnapshot(TidyDoc tdoc)
Take a snapshot of current config settings.
TidyNode TIDY_CALL tidyGetHead(TidyDoc tdoc)
Get the HEAD node.
ctmbstr TIDY_CALL tidyDefaultString(uint messageType)
Provides a string given messageType in the default localization (which is en).
void * free(TidyAllocator *self, void *block)
Called to free a previously allocated block of memory.
ctmbstr TIDY_CALL tidyOptGetCurrPick(TidyDoc tdoc, TidyOptionId optId)
Get the current pick list value for the option ID, which can be useful for enum types.
TidyAttr TIDY_CALL tidyAttrNext(TidyAttr tattr)
Get the next attribute.
void(TIDY_CALL * TidyPutByteFunc)(void *sinkData, byte bt)
Output callback: send a byte to output.
Definition: tidy.h:1122
Represents an opaque type we can use for tidyLocaleMapItem, which is used to iterate through the lang...
int TIDY_CALL tidyRunDiagnostics(TidyDoc tdoc)
Reports the document type and diagnostic statistics on parsed and repaired markup.
TidyIterator TIDY_CALL getInstalledLanguageList(void)
Initiates an iterator for a list of Tidy's installed languages.
TidyAttr TIDY_CALL tidyAttrFirst(TidyNode tnod)
Get the first attribute.
Bool TIDY_CALL tidyOptionIsList(TidyOption opt)
Indicates that an option takes a list of items.
Bool TIDY_CALL tidyOptCopyConfig(TidyDoc tdocTo, TidyDoc tdocFrom)
Copy current configuration settings from one document to another.
void TIDY_CALL tidyErrorSummary(TidyDoc tdoc)
Write more complete information about errors to current error sink.
Single nodes of a TidyDocument are represented by this datatype.
Bool(TIDY_CALL * TidyReportCallback)(TidyDoc tdoc, TidyReportLevel lvl, uint line, uint col, ctmbstr code, va_list args)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1260
TidyNodeType
Node types.
Definition: tidyenum.h:835
TidyOption TIDY_CALL tidyGetNextOption(TidyDoc tdoc, TidyIterator *pos)
Given a valid TidyIterator initiated with tidyGetOptionList(), returns the instance of the next TidyO...
TidyOptionType
A Tidy configuration option can have one of these data types.
Definition: tidyenum.h:705
void TIDY_CALL tidyPutByte(TidyOutputSink *sink, uint byteValue)
Helper: send a byte to output.
TidyConfigCategory
Categories of Tidy configuration options, which are used mostly by user interfaces to sort Tidy optio...
Definition: tidyenum.h:698
Bool TIDY_CALL tidyOptDiffThanSnapshot(TidyDoc tdoc)
Any settings different than snapshot?
void *(TIDY_CALL * TidyMalloc)(size_t len)
Callback for malloc replacement.
Definition: tidy.h:297
int TIDY_CALL tidySaveSink(TidyDoc tdoc, TidyOutputSink *sink)
Save to given generic output sink.
ctmbstr TIDY_CALL tidyOptGetValue(TidyDoc tdoc, TidyOptionId optId)
Get the current value of the option ID for the given document.
uint TIDY_CALL tidyNodeLine(TidyNode tnod)
Get the line number where the node occurs.
Bool TIDY_CALL tidyOptParseValue(TidyDoc tdoc, ctmbstr optnam, ctmbstr val)
Set named option value as a string, regardless of the TidyOptionType.
TidyDoc TIDY_CALL tidyCreate(void)
The primary creation of a document instance.
Bool TIDY_CALL tidyNodeHasText(TidyDoc tdoc, TidyNode tnod)
Indicates whether or not the node has text.
Bool TIDY_CALL tidyInitSink(TidyOutputSink *sink, void *snkData, TidyPutByteFunc pbFunc)
Facilitates user defined sinks by providing an entry point to marshal pointers-to-functions.
TidyNode TIDY_CALL tidyGetHtml(TidyDoc tdoc)
Get the HTML node.
const TidyAllocatorVtbl * vtbl
The allocator's function table.
Definition: tidy.h:247
uint TIDY_CALL getNextStringKey(TidyIterator *iter)
Given a valid TidyIterator initiated with getStringKeyList(), returns an unsigned integer representin...
Bool TIDY_CALL tidyNodeGetText(TidyDoc tdoc, TidyNode tnod, TidyBuffer *buf)
Gets the text of a node and places it into the given TidyBuffer.
TidyReportLevel TIDY_CALL tidyGetMessageLevel(TidyMessage tmessage)
Get the TidyReportLevel of the message.
Bool TIDY_CALL tidySetConfigChangeCallback(TidyDoc tdoc, TidyConfigChangeCallback pCallback)
Applications using TidyLib may want to be informed when changes to options are made.
void TIDY_CALL tidyGeneralInfo(TidyDoc tdoc)
Write more general information about markup to current error sink.
ctmbstr TIDY_CALL tidyGetMessagePos(TidyMessage tmessage)
Get the position part part of the message in the current language.
ctmbstr TIDY_CALL tidyAttrName(TidyAttr tattr)
Get the name of a TidyAttr instance.
ctmbstr TIDY_CALL tidyGetMessage(TidyMessage tmessage)
Get the message with the format string already completed, in Tidy's current localization.
void TIDY_CALL tidyAttrDiscard(TidyDoc itdoc, TidyNode tnod, TidyAttr tattr)
Discard an attribute.
Bool TIDY_CALL tidyNodeIsText(TidyNode tnod)
Indicates whether or not a node is a text node.
Bool TIDY_CALL tidyOptSetBool(TidyDoc tdoc, TidyOptionId optId, Bool val)
Set option value as a Boolean flag.
Bool TIDY_CALL tidyGetMessageIsMuted(TidyMessage tmessage)
Get the muted status of the message, that is, whether or not the current configuration indicated that...
TidyNodeType TIDY_CALL tidyNodeGetType(TidyNode tnod)
Get the type of node.
int TIDY_CALL tidyParseStdin(TidyDoc tdoc)
Parse markup from the standard input.
ctmbstr TIDY_CALL tidyGetMessagePrefix(TidyMessage tmessage)
Get the prefix part of a message in the current language.
TidyIterator TIDY_CALL tidyGetMessageArguments(TidyMessage tmessage)
Initiates an iterator for a list of arguments related to a given message.
Bool TIDY_CALL tidyNodeGetValue(TidyDoc tdoc, TidyNode tnod, TidyBuffer *buf)
Get the value of the node.
ctmbstr TIDY_CALL tidyReleaseDate(void)
Get the release date for the current library.
void(TIDY_CALL * TidyPanic)(ctmbstr mssg)
Callback for out of memory panic state.
Definition: tidy.h:306
TidyNode TIDY_CALL tidyGetBody(TidyDoc tdoc)
Get the BODY node.
void(TIDY_CALL * TidyPPProgress)(TidyDoc tdoc, uint line, uint col, uint destLine)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1532