Download src/php/php-src/ext/intl/timezone/timezone_class.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 2.76 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/timezone/timezone_class.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/intl/timezone/timezone_class.h
-
curl -L -o timezone_class.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/timezone/timezone_class.h
2.76 kB
| /* | |
| +----------------------------------------------------------------------+ | |
| | 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: Gustavo Lopes <cataphract@netcabo.pt> | | |
| +----------------------------------------------------------------------+ | |
| */ | |
| //redefinition of inline in PHP headers causes problems, so include this before | |
| //fixes the build on windows for old versions of ICU | |
| typedef void TimeZone; | |
| using icu::TimeZone; | |
| typedef struct { | |
| // error handling | |
| intl_error err; | |
| // ICU TimeZone | |
| const TimeZone *utimezone; | |
| //whether to delete the timezone on object free | |
| bool should_delete; | |
| zend_object zo; | |
| } TimeZone_object; | |
| static inline TimeZone_object *php_intl_timezone_fetch_object(zend_object *obj) { | |
| return (TimeZone_object *)((char*)(obj) - XtOffsetOf(TimeZone_object, zo)); | |
| } | |
| zval *timezone_convert_to_datetimezone(const TimeZone *timeZone, intl_error *outside_error, const char *func, zval *ret); | |
| TimeZone *timezone_process_timezone_argument(zval *zv_timezone, intl_error *error, const char *func); | |
| void timezone_object_construct(const TimeZone *zone, zval *object, int owned); | |
| void timezone_register_IntlTimeZone_class(void); | |
| extern zend_class_entry *TimeZone_ce_ptr; | |
| extern zend_object_handlers TimeZone_handlers; | |