Download src/php/php-src/ext/dom/serialize_common.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/serialize_common.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dom/serialize_common.h
-
curl -L -o serialize_common.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/serialize_common.h
1.45 kB
| /* | |
| +----------------------------------------------------------------------+ | |
| | Copyright (c) The PHP Group | | |
| +----------------------------------------------------------------------+ | |
| | This source file is subject to version 3.01 of the PHP license, | | |
| | that is bundled with this package in the file LICENSE, and is | | |
| | available through the world-wide-web at the following url: | | |
| | https://www.php.net/license/3_01.txt | | |
| | If you did not receive a copy of the PHP license and are unable to | | |
| | obtain it through the world-wide-web, please send a note to | | |
| | license@php.net so we can mail you a copy immediately. | | |
| +----------------------------------------------------------------------+ | |
| | Authors: Niels Dossche <nielsdos@php.net> | | |
| +----------------------------------------------------------------------+ | |
| */ | |
| /* The lengths are merely here for optimization purposes, this cannot be used to compare substrings. */ | |
| static zend_always_inline bool dom_local_name_compare_ex(const xmlNode *node, const char *tag, size_t tag_length, size_t name_length) | |
| { | |
| return name_length == tag_length && memcmp((const char *) node->name, tag, name_length + 1) == 0; | |
| } | |