Load a dictionary based on the given config */
static PHP_FUNCTION(pspell_new_config)
{
- int type;
long conf;
zval *ind;
PspellCanHaveError *ret;
Returns true if word is valid */
static PHP_FUNCTION(pspell_check)
{
- int type, word_len;
+ int word_len;
long scin;
char *word;
PspellManager *manager;
char *word;
int word_len;
PspellManager *manager;
- int type;
const PspellWordList *wl;
const char *sug;
Notify the dictionary of a user-selected replacement */
static PHP_FUNCTION(pspell_store_replacement)
{
- int type, miss_len, corr_len;
+ int miss_len, corr_len;
long scin;
char *miss, *corr;
PspellManager *manager;
Adds a word to a personal list */
static PHP_FUNCTION(pspell_add_to_personal)
{
- int type, word_len;
+ int word_len;
long scin;
char *word;
PspellManager *manager;
Adds a word to the current session */
static PHP_FUNCTION(pspell_add_to_session)
{
- int type, word_len;
+ int word_len;
long scin;
char *word;
PspellManager *manager;
Clears the current session */
static PHP_FUNCTION(pspell_clear_session)
{
- int type;
long scin;
PspellManager *manager;
Saves the current (personal) wordlist */
static PHP_FUNCTION(pspell_save_wordlist)
{
- int type;
long scin;
PspellManager *manager;
Consider run-together words as valid components */
static PHP_FUNCTION(pspell_config_runtogether)
{
- int type;
long conf;
zend_bool runtogether;
PspellConfig *config;
Select mode for config (PSPELL_FAST, PSPELL_NORMAL or PSPELL_BAD_SPELLERS) */
static PHP_FUNCTION(pspell_config_mode)
{
- int type;
long conf, mode;
PspellConfig *config;
Ignore words <= n chars */
static PHP_FUNCTION(pspell_config_ignore)
{
- int type;
char ignore_str[MAX_LENGTH_OF_LONG + 1];
long conf, ignore = 0L;
PspellConfig *config;
static void pspell_config_path(INTERNAL_FUNCTION_PARAMETERS, char *option)
{
- int type;
long conf;
char *value;
int value_len;
Use a personal dictionary with replacement pairs for this config */
static PHP_FUNCTION(pspell_config_repl)
{
- int type;
long conf;
char *repl;
int repl_len;
Save replacement pairs when personal list is saved for this config */
static PHP_FUNCTION(pspell_config_save_repl)
{
- int type;
long conf;
zend_bool save;
PspellConfig *config;