File: enchant-2.vapi

package info (click to toggle)
geary 46.0-13
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,092 kB
  • sloc: javascript: 972; ansic: 722; sql: 247; xml: 183; python: 30; makefile: 28; sh: 24
file content (34 lines) | stat: -rw-r--r-- 1,388 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[CCode (cheader_filename = "enchant.h")]
namespace Enchant {
	public delegate void BrokerDescribeFn (string provider_name, string provider_desc, string provider_dll_file);
	public delegate void DictDescribeFn (string lang_tag, string provider_name, string provider_desc, string provider_file);

	[Compact]
	[CCode (free_function = "enchant_broker_free")]
	public class Broker {
		[CCode (cname = "enchant_broker_init")]
		public Broker ();

		public unowned Dict request_dict (string tag);
		public unowned Dict request_pwl_dict (string pwl);
		public void free_dict (Dict dict);
		public int dict_exists (string tag);
		public void set_ordering (string tag, string ordering);
		public void describe (BrokerDescribeFn fn);
		public void list_dicts (DictDescribeFn fn);
		public unowned string get_error ();
	}

	[Compact]
	public class Dict {
		public int check (string word, long len = -1);
		public unowned string[] suggest (string word, long len = -1);
		public void free_string_list ([CCode (array_length = false)] string[] string_list);
		public void add_to_session (string word, long len = -1);
		public int is_in_session (string word, long len = -1);
		public void store_replacement ( string mis, long mis_len, string cor, long cor_len);
		public void add_to_pwl ( string word, long len = -1);
		public void describe (DictDescribeFn fn);
		public unowned string get_error ();
	}
}