Functions for parsing markup from a given input source, as well as string and filename functions for added convenience.
HTML/XHTML version determined from input.
Functions | |
int TIDY_CALL | tidyParseBuffer (TidyDoc tdoc, TidyBuffer *buf) |
Parse markup in given buffer. More... | |
int TIDY_CALL | tidyParseFile (TidyDoc tdoc, ctmbstr filename) |
Parse markup in named file. More... | |
int TIDY_CALL | tidyParseSource (TidyDoc tdoc, TidyInputSource *source) |
Parse markup in given generic input source. More... | |
int TIDY_CALL | tidyParseStdin (TidyDoc tdoc) |
Parse markup from the standard input. More... | |
int TIDY_CALL | tidyParseString (TidyDoc tdoc, ctmbstr content) |
Parse markup in given string. More... | |
Parse markup in given buffer.
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay. tdoc | The tidy document to use for parsing. |
buf | The TidyBuffer containing data to parse. |
Parse markup in named file.
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay. tdoc | The tidy document to use for parsing. |
filename | The filename to parse. |
int TIDY_CALL tidyParseSource | ( | TidyDoc | tdoc, |
TidyInputSource * | source | ||
) |
Parse markup in given generic input source.
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay. tdoc | The tidy document to use for parsing. |
source | A TidyInputSource containing data to parse. |
Parse markup from the standard input.
tdoc | The tidy document to use for parsing. |
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay. Parse markup in given string.
Note that the supplied string is of type ctmbstr
based on char
and therefore doesn't support the use of UTF-16 strings. Use tidyParseBuffer()
if parsing multibyte strings.
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay. tdoc | The tidy document to use for parsing. |
content | The string to parse. |