Skip to content

Commit ca706a3

Browse files
committed
Updating doc: adding pspell_new_config
1 parent 4cfaca7 commit ca706a3

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

generated/functionsList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@
860860
'pspell_config_repl',
861861
'pspell_config_runtogether',
862862
'pspell_config_save_repl',
863+
'pspell_new_config',
863864
'pspell_new',
864865
'pspell_save_wordlist',
865866
'pspell_store_replacement',

generated/pspell.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,26 @@ function pspell_config_save_repl(int $dictionary_link, bool $flag): void
310310
}
311311

312312

313+
/**
314+
*
315+
*
316+
* @param int $config The config parameter is the one returned by
317+
* pspell_config_create when the config was created.
318+
* @return int Returns a dictionary link identifier on success, .
319+
* @throws PspellException
320+
*
321+
*/
322+
function pspell_new_config(int $config): int
323+
{
324+
error_clear_last();
325+
$result = \pspell_new_config($config);
326+
if ($result === false) {
327+
throw PspellException::createFromPhpError();
328+
}
329+
return $result;
330+
}
331+
332+
313333
/**
314334
* pspell_new opens up a new dictionary and
315335
* returns the dictionary link identifier for use in other pspell

rector-migrate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ services:
861861
pspell_config_repl: 'Safe\pspell_config_repl'
862862
pspell_config_runtogether: 'Safe\pspell_config_runtogether'
863863
pspell_config_save_repl: 'Safe\pspell_config_save_repl'
864+
pspell_new_config: 'Safe\pspell_new_config'
864865
pspell_new: 'Safe\pspell_new'
865866
pspell_save_wordlist: 'Safe\pspell_save_wordlist'
866867
pspell_store_replacement: 'Safe\pspell_store_replacement'

0 commit comments

Comments
 (0)