Home
last modified time | relevance | path

Searched refs:broker (Results 1 – 25 of 26) sorted by relevance

12

/PHP-7.3/ext/enchant/tests/
H A Dbroker_list_dicts.phpt12 $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 Dbroker_describe.phpt12 $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 Denchant_broker_set_dict_path.phpt2 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 Dbug13181.phpt2 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 Ddict_describe.phpt13 $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 Dbroker_request_pwl_dict.phpt2 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 Dbroker_free_02.phpt13 $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 Dbroker_free_dict.phpt13 $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 Ddict_quick_check_01.phpt13 $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 Ddict_suggest.phpt13 $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 Ddict_add_to_personal.phpt13 $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 Ddict_add_to_session.phpt13 $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 Ddict_check.phpt13 $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 Ddict_is_in_session.phpt13 $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 Ddict_store_replacement.phpt13 $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 Ddict_get_error.phpt13 $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 Dbroker_free_01.phpt12 $broker = enchant_broker_init();
13 if (is_resource($broker)) {
16 if (enchant_broker_free($broker)) {
19 echo("broker free failed\n");
H A Dbroker_set_ordering.phpt13 $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 Dbroker_free.phpt12 $broker = enchant_broker_init();
13 if (is_resource($broker)) {
15 enchant_broker_free($broker);
H A Dbroker_get_error.phpt12 $broker = enchant_broker_init();
13 if (is_resource($broker)) {
15 $enchantErr = enchant_broker_get_error($broker);
H A Dbug53070.phpt10 $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 Dbroker_dict_exists.phpt13 $broker = enchant_broker_init();
14 $dicts = enchant_broker_list_dicts($broker);
16 if (enchant_broker_dict_exists($broker, $dicts[0]['lang_tag'])) {
H A Dbroker_request_dict_01.phpt13 $broker = enchant_broker_init();
14 $dicts = enchant_broker_list_dicts($broker);
17 $dict = enchant_broker_request_dict($broker, $dicts[0]['lang_tag']);
H A Dbroker_request_dict.phpt13 $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 Denchant.c233 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 …]

Completed in 32 milliseconds

12