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

Go to the source code of this file.

Data Structures

struct  Collator_object
 

Macros

#define COLLATOR_ERROR(co)
 
#define COLLATOR_ERROR_P(co)
 
#define COLLATOR_ERROR_CODE(co)
 
#define COLLATOR_ERROR_CODE_P(co)
 
#define Z_INTL_COLLATOR_P(zv)
 
#define COLLATOR_METHOD_INIT_VARS
 
#define COLLATOR_METHOD_FETCH_OBJECT   INTL_METHOD_FETCH_OBJECT(INTL_COLLATOR, co)
 
#define COLLATOR_CHECK_STATUS(co, msg)
 

Functions

void collator_register_Collator_symbols (int module_number)
 
void collator_object_init (Collator_object *co)
 
void collator_object_destroy (Collator_object *co)
 

Variables

zend_class_entryCollator_ce_ptr
 

Macro Definition Documentation

◆ COLLATOR_CHECK_STATUS

#define COLLATOR_CHECK_STATUS ( co,
msg )
Value:
if( U_FAILURE( COLLATOR_ERROR_CODE( co ) ) ) \
{ \
intl_errors_set_custom_msg( COLLATOR_ERROR_P( co ), msg, 0 ); \
} \
#define COLLATOR_ERROR_P(co)
#define COLLATOR_ERROR_CODE(co)
#define NULL
Definition gdcache.h:45
void intl_error_set_code(intl_error *err, UErrorCode err_code)
Definition intl_error.c:141
char * msg
Definition phpdbg.h:289
#define RETURN_FALSE
Definition zend_API.h:1058

Definition at line 65 of file collator_class.h.

◆ COLLATOR_ERROR

#define COLLATOR_ERROR ( co)
Value:
(co)->err
char * err
Definition ffi.c:3029

Definition at line 38 of file collator_class.h.

◆ COLLATOR_ERROR_CODE

#define COLLATOR_ERROR_CODE ( co)
Value:
#define COLLATOR_ERROR(co)
#define INTL_ERROR_CODE(e)
Definition intl_error.h:24

Definition at line 41 of file collator_class.h.

◆ COLLATOR_ERROR_CODE_P

#define COLLATOR_ERROR_CODE_P ( co)
Value:

Definition at line 42 of file collator_class.h.

◆ COLLATOR_ERROR_P

#define COLLATOR_ERROR_P ( co)
Value:

Definition at line 39 of file collator_class.h.

◆ COLLATOR_METHOD_FETCH_OBJECT

#define COLLATOR_METHOD_FETCH_OBJECT   INTL_METHOD_FETCH_OBJECT(INTL_COLLATOR, co)

Definition at line 62 of file collator_class.h.

◆ COLLATOR_METHOD_INIT_VARS

#define COLLATOR_METHOD_INIT_VARS
Value:
zval* object = NULL; \
intl_error_reset( NULL ); \
struct _zval_struct zval

Definition at line 57 of file collator_class.h.

◆ Z_INTL_COLLATOR_P

#define Z_INTL_COLLATOR_P ( zv)
Value:
php_intl_collator_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 47 of file collator_class.h.

Function Documentation

◆ collator_object_destroy()

void collator_object_destroy ( Collator_object * co)

Definition at line 99 of file collator_class.c.

◆ collator_object_init()

void collator_object_init ( Collator_object * co)

Definition at line 87 of file collator_class.c.

◆ collator_register_Collator_symbols()

void collator_register_Collator_symbols ( int module_number)

Definition at line 64 of file collator_class.c.

Variable Documentation

◆ Collator_ce_ptr

zend_class_entry* Collator_ce_ptr
extern

Definition at line 27 of file collator_class.c.