php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
enchant.c File Reference
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "Zend/zend_attributes.h"
#include "Zend/zend_exceptions.h"
#include <enchant.h>
#include "php_enchant.h"
#include "enchant_arginfo.h"

Go to the source code of this file.

Data Structures

struct  _broker_struct
 
struct  _dict_struct
 

Macros

#define PHP_ENCHANT_MYSPELL   1
 
#define PHP_ENCHANT_ISPELL   2
 
#define Z_ENCHANT_BROKER_P(zv)
 
#define Z_ENCHANT_DICT_P(zv)
 
#define PHP_ENCHANT_GET_BROKER
 
#define PHP_ENCHANT_GET_DICT
 

Typedefs

typedef struct _broker_struct enchant_broker
 
typedef struct _dict_struct enchant_dict
 

Functions

 PHP_MINIT_FUNCTION (enchant)
 
 PHP_MSHUTDOWN_FUNCTION (enchant)
 
 PHP_MINFO_FUNCTION (enchant)
 
 PHP_FUNCTION (enchant_broker_init)
 
 PHP_FUNCTION (enchant_broker_free)
 
 PHP_FUNCTION (enchant_broker_get_error)
 
 PHP_FUNCTION (enchant_broker_set_dict_path)
 
 PHP_FUNCTION (enchant_broker_get_dict_path)
 
 PHP_FUNCTION (enchant_broker_list_dicts)
 
 PHP_FUNCTION (enchant_broker_request_dict)
 
 PHP_FUNCTION (enchant_broker_request_pwl_dict)
 
 PHP_FUNCTION (enchant_broker_free_dict)
 
 PHP_FUNCTION (enchant_broker_dict_exists)
 
 PHP_FUNCTION (enchant_broker_set_ordering)
 
 PHP_FUNCTION (enchant_broker_describe)
 
 PHP_FUNCTION (enchant_dict_quick_check)
 
 PHP_FUNCTION (enchant_dict_check)
 
 PHP_FUNCTION (enchant_dict_suggest)
 
 PHP_FUNCTION (enchant_dict_add)
 
 PHP_FUNCTION (enchant_dict_add_to_session)
 
 PHP_FUNCTION (enchant_dict_is_added)
 
 PHP_FUNCTION (enchant_dict_store_replacement)
 
 PHP_FUNCTION (enchant_dict_get_error)
 
 PHP_FUNCTION (enchant_dict_describe)
 

Variables

zend_class_entryenchant_broker_ce
 
zend_class_entryenchant_dict_ce
 
zend_module_entry enchant_module_entry
 

Macro Definition Documentation

◆ PHP_ENCHANT_GET_BROKER

#define PHP_ENCHANT_GET_BROKER
Value:
pbroker = Z_ENCHANT_BROKER_P(broker); \
if (!pbroker->pbroker) { \
zend_value_error("Invalid or uninitialized EnchantBroker object"); \
RETURN_THROWS(); \
}
#define Z_ENCHANT_BROKER_P(zv)
Definition enchant.c:57

Definition at line 254 of file enchant.c.

◆ PHP_ENCHANT_GET_DICT

#define PHP_ENCHANT_GET_DICT
Value:
pdict = Z_ENCHANT_DICT_P(dict); \
if (!pdict->pdict) { \
zend_value_error("Invalid or uninitialized EnchantDictionary object"); \
RETURN_THROWS(); \
}
#define Z_ENCHANT_DICT_P(zv)
Definition enchant.c:75

Definition at line 261 of file enchant.c.

◆ PHP_ENCHANT_ISPELL

#define PHP_ENCHANT_ISPELL   2

Definition at line 31 of file enchant.c.

◆ PHP_ENCHANT_MYSPELL

#define PHP_ENCHANT_MYSPELL   1

Definition at line 30 of file enchant.c.

◆ Z_ENCHANT_BROKER_P

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

Definition at line 57 of file enchant.c.

◆ Z_ENCHANT_DICT_P

#define Z_ENCHANT_DICT_P ( zv)
Value:
enchant_dict_from_obj(Z_OBJ_P(zv))

Definition at line 75 of file enchant.c.

Typedef Documentation

◆ enchant_broker

◆ enchant_dict

typedef struct _dict_struct enchant_dict

Function Documentation

◆ PHP_FUNCTION() [1/21]

PHP_FUNCTION ( enchant_broker_describe )

Definition at line 574 of file enchant.c.

◆ PHP_FUNCTION() [2/21]

PHP_FUNCTION ( enchant_broker_dict_exists )

Definition at line 530 of file enchant.c.

◆ PHP_FUNCTION() [3/21]

PHP_FUNCTION ( enchant_broker_free )

Definition at line 291 of file enchant.c.

◆ PHP_FUNCTION() [4/21]

PHP_FUNCTION ( enchant_broker_free_dict )

Definition at line 503 of file enchant.c.

◆ PHP_FUNCTION() [5/21]

PHP_FUNCTION ( enchant_broker_get_dict_path )

Definition at line 376 of file enchant.c.

◆ PHP_FUNCTION() [6/21]

PHP_FUNCTION ( enchant_broker_get_error )

Definition at line 314 of file enchant.c.

◆ PHP_FUNCTION() [7/21]

PHP_FUNCTION ( enchant_broker_init )

Definition at line 269 of file enchant.c.

◆ PHP_FUNCTION() [8/21]

PHP_FUNCTION ( enchant_broker_list_dicts )

Definition at line 416 of file enchant.c.

◆ PHP_FUNCTION() [9/21]

PHP_FUNCTION ( enchant_broker_request_dict )

Definition at line 434 of file enchant.c.

◆ PHP_FUNCTION() [10/21]

Definition at line 469 of file enchant.c.

◆ PHP_FUNCTION() [11/21]

PHP_FUNCTION ( enchant_broker_set_dict_path )

Definition at line 335 of file enchant.c.

◆ PHP_FUNCTION() [12/21]

PHP_FUNCTION ( enchant_broker_set_ordering )

Definition at line 553 of file enchant.c.

◆ PHP_FUNCTION() [13/21]

PHP_FUNCTION ( enchant_dict_add )

Definition at line 686 of file enchant.c.

◆ PHP_FUNCTION() [14/21]

PHP_FUNCTION ( enchant_dict_add_to_session )

Definition at line 704 of file enchant.c.

◆ PHP_FUNCTION() [15/21]

PHP_FUNCTION ( enchant_dict_check )

Definition at line 638 of file enchant.c.

◆ PHP_FUNCTION() [16/21]

PHP_FUNCTION ( enchant_dict_describe )

Definition at line 784 of file enchant.c.

◆ PHP_FUNCTION() [17/21]

PHP_FUNCTION ( enchant_dict_get_error )

Definition at line 762 of file enchant.c.

◆ PHP_FUNCTION() [18/21]

PHP_FUNCTION ( enchant_dict_is_added )

Definition at line 722 of file enchant.c.

◆ PHP_FUNCTION() [19/21]

PHP_FUNCTION ( enchant_dict_quick_check )

Definition at line 593 of file enchant.c.

◆ PHP_FUNCTION() [20/21]

Definition at line 743 of file enchant.c.

◆ PHP_FUNCTION() [21/21]

PHP_FUNCTION ( enchant_dict_suggest )

Definition at line 656 of file enchant.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( enchant )

Definition at line 233 of file enchant.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( enchant )

Definition at line 188 of file enchant.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( enchant )

Definition at line 217 of file enchant.c.

Variable Documentation

◆ enchant_broker_ce

zend_class_entry* enchant_broker_ce

Definition at line 50 of file enchant.c.

◆ enchant_dict_ce

zend_class_entry* enchant_dict_ce

Definition at line 68 of file enchant.c.

◆ enchant_module_entry

zend_module_entry enchant_module_entry
Initial value:
= {
"enchant",
ext_functions,
PHP_MINIT(enchant),
PHP_MSHUTDOWN(enchant),
NULL,
NULL,
PHP_MINFO(enchant),
}
#define NULL
Definition gdcache.h:45
#define PHP_MINFO
Definition php.h:396
#define PHP_MSHUTDOWN
Definition php.h:393
#define PHP_MINIT
Definition php.h:392
#define PHP_ENCHANT_VERSION
Definition php_enchant.h:23
#define STANDARD_MODULE_HEADER
#define STANDARD_MODULE_PROPERTIES

Definition at line 87 of file enchant.c.