php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
intl_common.h File Reference
#include <php.h>
#include <unicode/utypes.h>

Go to the source code of this file.

Macros

#define UBYTES(len)
 
#define eumalloc(size)
 
#define eurealloc(ptr, size)
 
#define USIZE(data)
 
#define UCHARS(len)
 
#define INTL_ZSTR_VAL(str)
 
#define INTL_ZSTR_LEN(str)
 

Variables

zend_class_entryIntlException_ce_ptr
 

Macro Definition Documentation

◆ eumalloc

#define eumalloc ( size)
Value:
(UChar*)safe_emalloc(size, sizeof(UChar), 0)
new_type size
Definition ffi.c:4365
#define safe_emalloc(nmemb, size, offset)
Definition zend_alloc.h:154

Definition at line 31 of file intl_common.h.

◆ eurealloc

#define eurealloc ( ptr,
size )
Value:
(UChar*)erealloc((ptr), size * sizeof(UChar))
void * ptr
Definition ffi.c:3814
#define erealloc(ptr, size)
Definition zend_alloc.h:159

Definition at line 35 of file intl_common.h.

◆ INTL_ZSTR_LEN

#define INTL_ZSTR_LEN ( str)
Value:
#define UCHARS(len)
Definition intl_common.h:39
#define ZSTR_LEN(zstr)
Definition zend_string.h:69

Definition at line 42 of file intl_common.h.

◆ INTL_ZSTR_VAL

#define INTL_ZSTR_VAL ( str)
Value:
(UChar*) ZSTR_VAL(str)
#define ZSTR_VAL(zstr)
Definition zend_string.h:68

Definition at line 41 of file intl_common.h.

◆ UBYTES

#define UBYTES ( len)
Value:
((len) * sizeof(UChar))
size_t len
Definition apprentice.c:174

Definition at line 27 of file intl_common.h.

◆ UCHARS

#define UCHARS ( len)
Value:
((len) / sizeof(UChar))

Definition at line 39 of file intl_common.h.

◆ USIZE

#define USIZE ( data)
Value:
sizeof((data))/sizeof(UChar)
zend_constant * data

Definition at line 38 of file intl_common.h.

Variable Documentation

◆ IntlException_ce_ptr

zend_class_entry* IntlException_ce_ptr
extern

Definition at line 30 of file intl_error.c.