Download src/php/php-src/ext/dom/notation.c from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/notation.c
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dom/notation.c
-
curl -L -o notation.c https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/notation.c
2.24 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: Christian Stocker <chregu@php.net> | | |
| | Rob Richards <rrichards@php.net> | | |
| +----------------------------------------------------------------------+ | |
| */ | |
| /* | |
| * class DOMNotation extends DOMNode | |
| * | |
| * URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-5431D1B9 | |
| * Since: | |
| */ | |
| /* {{{ attribute protos, not implemented yet */ | |
| /* {{{ publicId string | |
| readonly=yes | |
| URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-54F2B4D0 | |
| Since: | |
| */ | |
| zend_result dom_notation_public_id_read(dom_object *obj, zval *retval) | |
| { | |
| DOM_PROP_NODE(xmlEntityPtr, nodep, obj); | |
| if (nodep->ExternalID) { | |
| ZVAL_STRING(retval, (char *) (nodep->ExternalID)); | |
| } else { | |
| ZVAL_EMPTY_STRING(retval); | |
| } | |
| return SUCCESS; | |
| } | |
| /* }}} */ | |
| /* {{{ systemId string | |
| readonly=yes | |
| URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-E8AAB1D0 | |
| Since: | |
| */ | |
| zend_result dom_notation_system_id_read(dom_object *obj, zval *retval) | |
| { | |
| DOM_PROP_NODE(xmlEntityPtr, nodep, obj); | |
| if (nodep->SystemID) { | |
| ZVAL_STRING(retval, (char *) (nodep->SystemID)); | |
| } else { | |
| ZVAL_EMPTY_STRING(retval); | |
| } | |
| return SUCCESS; | |
| } | |
| /* }}} */ | |
| /* }}} */ | |