mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
198 lines
4.7 KiB
PHP
198 lines
4.7 KiB
PHP
<?php
|
|
|
|
/** @generate-function-entries */
|
|
|
|
/** @param array|string $config_options */
|
|
function tidy_parse_string(string $input, $config_options = UNKNOWN, string $encoding = UNKNOWN): tidy|false {}
|
|
|
|
function tidy_get_error_buffer(tidy $object): string|false {}
|
|
|
|
function tidy_get_output(tidy $object): string {}
|
|
|
|
/** @param array|string $config_options */
|
|
function tidy_parse_file(string $file, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): tidy|false {}
|
|
|
|
function tidy_clean_repair(tidy $object): bool {}
|
|
|
|
/** @param array|string $config_options */
|
|
function tidy_repair_string(string $data, $config_options = UNKNOWN, string $encoding = UNKNOWN): string|false {}
|
|
|
|
/** @param array|string $config_options */
|
|
function tidy_repair_file(string $filename, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): string|false {}
|
|
|
|
function tidy_diagnose(tidy $object): bool {}
|
|
|
|
function tidy_get_release(): string {}
|
|
|
|
#ifdef HAVE_TIDYOPTGETDOC
|
|
function tidy_get_opt_doc(tidy $object, string $optname): string|false {}
|
|
#endif
|
|
|
|
function tidy_get_config(tidy $object): array {}
|
|
|
|
function tidy_get_status(tidy $object): int {}
|
|
|
|
function tidy_get_html_ver(tidy $object): int {}
|
|
|
|
function tidy_is_xhtml(tidy $object): bool {}
|
|
|
|
function tidy_is_xml(tidy $object): bool {}
|
|
|
|
function tidy_error_count(tidy $object): int {}
|
|
|
|
function tidy_warning_count(tidy $object): int {}
|
|
|
|
function tidy_access_count(tidy $object): int {}
|
|
|
|
function tidy_config_count(tidy $object): int {}
|
|
|
|
function tidy_getopt(tidy $object, string $option): string|int|bool {}
|
|
|
|
function tidy_get_root(tidy $object): ?tidyNode {}
|
|
|
|
function tidy_get_html(tidy $object): ?tidyNode {}
|
|
|
|
function tidy_get_head(tidy $object): ?tidyNode {}
|
|
|
|
function tidy_get_body(tidy $tidy): ?tidyNode {}
|
|
|
|
class tidy
|
|
{
|
|
/** @param array|string $config_options */
|
|
public function __construct(string $filename = UNKNOWN, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
|
|
|
|
/**
|
|
* @return string|int|bool
|
|
* @alias tidy_getopt
|
|
*/
|
|
public function getOpt(string $option) {}
|
|
|
|
/**
|
|
* @return bool
|
|
* @alias tidy_clean_repair
|
|
*/
|
|
public function cleanRepair() {}
|
|
|
|
/**
|
|
* @param array|string $config_options
|
|
* @return bool
|
|
*/
|
|
public function parseFile(string $file, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
|
|
|
|
/**
|
|
* @param array|string $config_options
|
|
* @return bool
|
|
*/
|
|
public function parseString(string $input, $config_options = UNKNOWN, string $encoding = UNKNOWN) {}
|
|
|
|
/**
|
|
* @param array|string $config_options
|
|
* @return bool
|
|
* @alias tidy_repair_string
|
|
*/
|
|
public function repairString(string $data, $config_options = UNKNOWN, string $encoding = UNKNOWN) {}
|
|
|
|
/**
|
|
* @param array|string $config_options
|
|
* @return bool
|
|
* @alias tidy_repair_file
|
|
*/
|
|
public function repairFile(string $filename, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
|
|
|
|
/**
|
|
* @return bool
|
|
* @alias tidy_diagnose
|
|
*/
|
|
public function diagnose() {}
|
|
|
|
/**
|
|
* @return string
|
|
* @alias tidy_get_release
|
|
*/
|
|
public function getRelease() {}
|
|
|
|
/**
|
|
* @return array
|
|
* @alias tidy_get_config
|
|
*/
|
|
public function getConfig() {}
|
|
|
|
/**
|
|
* @return int
|
|
* @alias tidy_get_status
|
|
*/
|
|
public function getStatus() {}
|
|
|
|
/**
|
|
* @return int
|
|
* @alias tidy_get_html_ver
|
|
*/
|
|
public function getHtmlVer() {}
|
|
|
|
#ifdef HAVE_TIDYOPTGETDOC
|
|
/**
|
|
* @return string|false
|
|
* @alias tidy_get_opt_doc
|
|
*/
|
|
public function getOptDoc(string $optname) {}
|
|
#endif
|
|
|
|
/**
|
|
* @return bool
|
|
* @alias tidy_is_xhtml
|
|
*/
|
|
public function isXhtml() {}
|
|
|
|
/**
|
|
* @return bool
|
|
* @alias tidy_is_xml
|
|
*/
|
|
public function isXml() {}
|
|
|
|
/**
|
|
* @return tidyNode|null
|
|
* @alias tidy_get_root
|
|
*/
|
|
public function root() {}
|
|
|
|
/**
|
|
* @return tidyNode|null
|
|
* @alias tidy_get_head
|
|
*/
|
|
public function head() {}
|
|
|
|
/**
|
|
* @return tidyNode|null
|
|
* @alias tidy_get_html
|
|
*/
|
|
public function html() {}
|
|
|
|
/**
|
|
* @return tidyNode|null
|
|
* @alias tidy_get_body
|
|
*/
|
|
public function body() {}
|
|
}
|
|
|
|
final class tidyNode
|
|
{
|
|
private function __construct() {}
|
|
|
|
public function hasChildren(): bool {}
|
|
|
|
public function hasSiblings(): bool {}
|
|
|
|
public function isComment(): bool {}
|
|
|
|
public function isHtml(): bool {}
|
|
|
|
public function isText(): bool {}
|
|
|
|
public function isJste(): bool {}
|
|
|
|
public function isAsp(): bool {}
|
|
|
|
public function isPhp(): bool {}
|
|
|
|
public function getParent(): ?tidyNode {}
|
|
}
|