/PHP-7.3/ext/enchant/tests/ |
H A D | broker_list_dicts.phpt | 12 $broker = enchant_broker_init(); 14 if (!$broker) { 15 echo "skip: Unable to init broker\n"; 19 if (!enchant_broker_list_dicts($broker)) { 20 enchant_broker_free($broker); 22 echo "skip: No broker dicts installed\n"; 25 enchant_broker_free($broker); 29 $broker = enchant_broker_init(); 30 if (is_resource($broker)) { 32 $brokerListDicts = enchant_broker_list_dicts($broker); [all …]
|
H A D | broker_describe.phpt | 12 $broker = enchant_broker_init(); 14 if (!$broker) { 15 echo "skip: Unable to init broker\n"; 19 if (!enchant_broker_describe($broker)) { 20 enchant_broker_free($broker); 22 echo "skip: No broker providers found\n"; 25 enchant_broker_free($broker); 29 $broker = enchant_broker_init(); 32 if($broker) { 43 echo("failed, broker describe\n"); [all …]
|
H A D | enchant_broker_set_dict_path.phpt | 2 proto bool enchant_broker_set_dict_path(resource broker, int dict_type, string value) function 3 proto string enchant_broker_get_dict_path(resource broker, int dict_type) function 14 $broker = enchant_broker_init(); 20 if (is_resource($broker)) { 23 if (enchant_broker_set_dict_path($broker, $dictTypeValue1, $backEndDictType1)) { 26 if (enchant_broker_set_dict_path($broker, $dictTypeValue2, $backEndDictType2)) { 31 (enchant_broker_get_dict_path($broker,$dictTypeValue2) == $backEndDictType2) 36 echo("broker get dict path has failed \n"); 40 echo("broker set dict path {$backEndDictType2} has failed \n"); 43 echo("broker set dict path {$backEndDictType1} has failed \n"); [all …]
|
H A D | bug13181.phpt | 2 bug #13181, leaving a context frees the broker resources 10 $broker = enchant_broker_init(); 12 if (!$broker) { 13 echo "skip: Unable to init broker\n"; 17 if (!enchant_broker_list_dicts($broker)) { 18 enchant_broker_free($broker); 20 echo "skip: No broker dicts installed\n"; 23 enchant_broker_free($broker); 46 function get_dict($broker) { 47 $t = enchant_broker_request_dict($broker, 'en');
|
H A D | dict_describe.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 16 if (is_resource($broker)) { 18 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 28 echo("broker request dict failed\n"); 31 echo("broker request dict failed\n"); 34 echo("broker is not a resource; failed;\n");
|
H A D | broker_request_pwl_dict.phpt | 2 resource enchant_broker_request_pwl_dict(resource $broker, string $filename); function 12 $broker = enchant_broker_init(); 15 if (is_resource($broker)) { 17 $requestDict = enchant_broker_request_pwl_dict($broker, $pathPwlDict); 26 echo("broker dict describe is not a resource failed\n"); 29 echo("dict broker request pwl has failed\n"); 32 echo("broker is not a resource; failed;\n");
|
H A D | broker_free_02.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 33 if (enchant_broker_free($broker)) { 37 echo("broker free failed\n"); 40 echo("broker dict free failed\n"); 46 echo("broker request dict failed\n");
|
H A D | broker_free_dict.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 16 if (is_resource($broker)) { 18 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 31 echo("dict broker free has failed\n"); 39 echo("broker request dict failed\n"); 43 echo("broker is not a resource; failed;\n");
|
H A D | dict_quick_check_01.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 30 echo("broker request dict failed\n"); 33 echo("broker is not a resource; failed;\n");
|
H A D | dict_suggest.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 32 echo("broker request dict failed\n"); 37 echo("broker is not a resource; failed;\n");
|
H A D | dict_add_to_personal.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 33 echo("broker request dict failed\n"); 38 echo("broker is not a resource; failed;\n");
|
H A D | dict_add_to_session.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 33 echo("broker request dict failed\n"); 36 echo("broker is not a resource; failed;\n");
|
H A D | dict_check.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 33 echo("broker request dict failed\n"); 38 echo("broker is not a resource; failed;\n");
|
H A D | dict_is_in_session.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 31 echo("broker request dict failed\n"); 34 echo("broker is not a resource; failed;\n");
|
H A D | dict_store_replacement.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 18 if (is_resource($broker)) { 20 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 32 echo("broker request dict failed\n"); 35 echo("broker is not a resource; failed;\n");
|
H A D | dict_get_error.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 16 if (is_resource($broker)) { 18 $requestDict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']); 23 echo("broker request dict failed\n");
|
H A D | broker_free_01.phpt | 12 $broker = enchant_broker_init(); 13 if (is_resource($broker)) { 16 if (enchant_broker_free($broker)) { 19 echo("broker free failed\n");
|
H A D | broker_set_ordering.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 if (is_resource($broker)) { 19 if (enchant_broker_set_ordering($broker,$dicts[0]['lang_tag'],$comma)) {
|
H A D | broker_free.phpt | 12 $broker = enchant_broker_init(); 13 if (is_resource($broker)) { 15 enchant_broker_free($broker);
|
H A D | broker_get_error.phpt | 12 $broker = enchant_broker_init(); 13 if (is_resource($broker)) { 15 $enchantErr = enchant_broker_get_error($broker);
|
H A D | bug53070.phpt | 10 $broker = enchant_broker_init(); 11 var_dump(enchant_broker_get_dict_path($broker, ENCHANT_MYSPELL)); 12 var_dump(enchant_broker_get_dict_path($broker, ENCHANT_ISPELL));
|
H A D | broker_dict_exists.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 16 if (enchant_broker_dict_exists($broker, $dicts[0]['lang_tag'])) {
|
H A D | broker_request_dict_01.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 17 $dict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']);
|
H A D | broker_request_dict.phpt | 13 $broker = enchant_broker_init(); 14 $dicts = enchant_broker_list_dicts($broker); 18 $dict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']);
|
/PHP-7.3/ext/enchant/ |
H A D | enchant.c | 233 if (broker) { in php_enchant_broker_free() 235 if (broker->dictcnt && broker->dict) { in php_enchant_broker_free() 376 zval *broker; in PHP_FUNCTION() local 393 zval *broker; in PHP_FUNCTION() local 416 zval *broker; in PHP_FUNCTION() local 456 zval *broker; in PHP_FUNCTION() local 513 zval *broker; in PHP_FUNCTION() local 531 zval *broker; in PHP_FUNCTION() local 579 zval *broker; in PHP_FUNCTION() local 644 zval *broker; in PHP_FUNCTION() local [all …]
|