php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
datepatterngenerator_class.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | This source file is subject to version 3.01 of the PHP license, |
4 | that is bundled with this package in the file LICENSE, and is |
5 | available through the world-wide-web at the following url: |
6 | https://www.php.net/license/3_01.txt |
7 | If you did not receive a copy of the PHP license and are unable to |
8 | obtain it through the world-wide-web, please send a note to |
9 | license@php.net so we can mail you a copy immediately. |
10 +----------------------------------------------------------------------+
11 | Authors: Mel Dafert (mel@dafert.at) |
12 +----------------------------------------------------------------------+
13*/
14
15#ifndef DATEPATTERNGENERATOR_CLASS_H
16#define DATEPATTERNGENERATOR_CLASS_H
17
18#include <php.h>
19#include "intl_common.h"
20#include "intl_error.h"
21#include "intl_data.h"
22
23#ifndef USE_DATETIMEPATTERNGENERATOR_POINTER
25#else
26using icu::DateTimePatternGenerator;
27#endif
28
29typedef struct {
30 // error handling
32
33 // ICU break iterator
35
38
39static inline IntlDatePatternGenerator_object *php_intl_datepatterngenerator_fetch_object(zend_object *obj) {
41}
42#define Z_INTL_DATEPATTERNGENERATOR_P(zv) php_intl_datepatterngenerator_fetch_object(Z_OBJ_P(zv))
43
44#define DTPATTERNGEN_ERROR(dtpgo) (dtpgo)->err
45#define DTPATTERNGEN_ERROR_P(dtpgo) &(DTPATTERNGEN_ERROR(dtpgo))
46
47#define DTPATTERNGEN_ERROR_CODE(dtpgo) INTL_ERROR_CODE(DTPATTERNGEN_ERROR(dtpgo))
48#define DTPATTERNGEN_ERROR_CODE_P(dtpgo) &(INTL_ERROR_CODE(DTPATTERNGEN_ERROR(dtpgo)))
49
50#define DTPATTERNGEN_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(IntlDatePatternGenerator, dtpgo)
51#define DTPATTERNGEN_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_DATEPATTERNGENERATOR, dtpgo)
52#define DTPATTERNGEN_METHOD_FETCH_OBJECT \
53 DTPATTERNGEN_METHOD_FETCH_OBJECT_NO_CHECK; \
54 if (dtpgo->dtpg == NULL) \
55 { \
56 zend_throw_error(NULL, "Found unconstructed IntlDatePatternGenerator"); \
57 RETURN_THROWS(); \
58 }
59
61
63
65
66#endif /* #ifndef DATEPATTERNGENERATOR_CLASS_H */
zend_class_entry * IntlDatePatternGenerator_ce_ptr
void dateformat_register_IntlDatePatternGenerator_class(void)
zend_object_handlers IntlDatePatternGenerator_handlers
void DateTimePatternGenerator
struct _intl_error intl_error
#define XtOffsetOf(s_type, field)
struct _zend_class_entry zend_class_entry
struct _zend_object zend_object
struct _zend_object_handlers zend_object_handlers
Definition zend_types.h:88