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

Go to the source code of this file.

Data Structures

struct  Spoofchecker_object
 

Macros

#define Z_INTL_SPOOFCHECKER_P(zv)
 
#define SPOOFCHECKER_ERROR(co)
 
#define SPOOFCHECKER_ERROR_P(co)
 
#define SPOOFCHECKER_ERROR_CODE(co)
 
#define SPOOFCHECKER_ERROR_CODE_P(co)
 
#define SPOOFCHECKER_METHOD_INIT_VARS
 
#define SPOOFCHECKER_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_SPOOFCHECKER, co)
 
#define SPOOFCHECKER_METHOD_FETCH_OBJECT
 
#define SPOOFCHECKER_CHECK_STATUS(co, msg)
 

Functions

void spoofchecker_register_Spoofchecker_class (void)
 
void spoofchecker_object_init (Spoofchecker_object *co)
 
void spoofchecker_object_destroy (Spoofchecker_object *co)
 

Variables

zend_class_entrySpoofchecker_ce_ptr
 

Macro Definition Documentation

◆ SPOOFCHECKER_CHECK_STATUS

#define SPOOFCHECKER_CHECK_STATUS ( co,
msg )
Value:
if (U_FAILURE(SPOOFCHECKER_ERROR_CODE(co))) { \
intl_errors_set_custom_msg(SPOOFCHECKER_ERROR_P(co), msg, 0); \
} \
#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 SPOOFCHECKER_ERROR_CODE(co)
#define SPOOFCHECKER_ERROR_P(co)
#define RETURN_FALSE
Definition zend_API.h:1058

Definition at line 73 of file spoofchecker_class.h.

◆ SPOOFCHECKER_ERROR

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

Definition at line 44 of file spoofchecker_class.h.

◆ SPOOFCHECKER_ERROR_CODE

#define SPOOFCHECKER_ERROR_CODE ( co)
Value:
#define INTL_ERROR_CODE(e)
Definition intl_error.h:24
#define SPOOFCHECKER_ERROR(co)

Definition at line 47 of file spoofchecker_class.h.

◆ SPOOFCHECKER_ERROR_CODE_P

#define SPOOFCHECKER_ERROR_CODE_P ( co)
Value:

Definition at line 48 of file spoofchecker_class.h.

◆ SPOOFCHECKER_ERROR_P

#define SPOOFCHECKER_ERROR_P ( co)
Value:

Definition at line 45 of file spoofchecker_class.h.

◆ SPOOFCHECKER_METHOD_FETCH_OBJECT

#define SPOOFCHECKER_METHOD_FETCH_OBJECT
Value:
if (co->uspoof == NULL) { \
zend_throw_error(NULL, "Found unconstructed Spoofchecker"); \
RETURN_THROWS(); \
}
#define SPOOFCHECKER_METHOD_FETCH_OBJECT_NO_CHECK

Definition at line 65 of file spoofchecker_class.h.

◆ SPOOFCHECKER_METHOD_FETCH_OBJECT_NO_CHECK

#define SPOOFCHECKER_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_SPOOFCHECKER, co)

Definition at line 64 of file spoofchecker_class.h.

◆ SPOOFCHECKER_METHOD_INIT_VARS

#define SPOOFCHECKER_METHOD_INIT_VARS
Value:
zval* object = ZEND_THIS; \
intl_error_reset(NULL); \
#define ZEND_THIS
Definition zend_API.h:523
struct _zval_struct zval

Definition at line 59 of file spoofchecker_class.h.

◆ Z_INTL_SPOOFCHECKER_P

#define Z_INTL_SPOOFCHECKER_P ( zv)
Value:
php_intl_spoofchecker_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 42 of file spoofchecker_class.h.

Function Documentation

◆ spoofchecker_object_destroy()

void spoofchecker_object_destroy ( Spoofchecker_object * co)

Definition at line 122 of file spoofchecker_class.c.

◆ spoofchecker_object_init()

void spoofchecker_object_init ( Spoofchecker_object * co)

Definition at line 109 of file spoofchecker_class.c.

◆ spoofchecker_register_Spoofchecker_class()

void spoofchecker_register_Spoofchecker_class ( void )

Definition at line 90 of file spoofchecker_class.c.

Variable Documentation

◆ Spoofchecker_ce_ptr

zend_class_entry* Spoofchecker_ce_ptr
extern

Definition at line 22 of file spoofchecker_class.c.