php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
formatter_class.h File Reference
#include <php.h>
#include "intl_common.h"
#include "intl_error.h"
#include "intl_data.h"
#include "formatter_data.h"

Go to the source code of this file.

Data Structures

struct  NumberFormatter_object
 

Macros

#define Z_INTL_NUMBERFORMATTER_P(zv)
 
#define FORMATTER_METHOD_INIT_VARS   INTL_METHOD_INIT_VARS(NumberFormatter, nfo)
 
#define FORMATTER_OBJECT(nfo)
 
#define FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_NUMBERFORMATTER, nfo)
 
#define FORMATTER_METHOD_FETCH_OBJECT
 

Functions

void formatter_register_class (void)
 

Variables

zend_class_entryNumberFormatter_ce_ptr
 

Macro Definition Documentation

◆ FORMATTER_METHOD_FETCH_OBJECT

#define FORMATTER_METHOD_FETCH_OBJECT
Value:
if (FORMATTER_OBJECT(nfo) == NULL) \
{ \
zend_throw_error(NULL, "Found unconstructed NumberFormatter"); \
RETURN_THROWS(); \
}
#define FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK
#define FORMATTER_OBJECT(nfo)
#define NULL
Definition gdcache.h:45

Definition at line 43 of file formatter_class.h.

◆ FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK

#define FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_NUMBERFORMATTER, nfo)

Definition at line 42 of file formatter_class.h.

◆ FORMATTER_METHOD_INIT_VARS

#define FORMATTER_METHOD_INIT_VARS   INTL_METHOD_INIT_VARS(NumberFormatter, nfo)

Definition at line 40 of file formatter_class.h.

◆ FORMATTER_OBJECT

#define FORMATTER_OBJECT ( nfo)
Value:
(nfo)->nf_data.unum

Definition at line 41 of file formatter_class.h.

◆ Z_INTL_NUMBERFORMATTER_P

#define Z_INTL_NUMBERFORMATTER_P ( zv)
Value:
php_intl_number_format_fetch_object(Z_OBJ_P(zv))
zval * zv
Definition ffi.c:3975
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 33 of file formatter_class.h.

Function Documentation

◆ formatter_register_class()

void formatter_register_class ( void )

Definition at line 91 of file formatter_class.c.

Variable Documentation

◆ NumberFormatter_ce_ptr

zend_class_entry* NumberFormatter_ce_ptr
extern

Definition at line 28 of file formatter_class.c.