![]() |
![]() |
![]() |
Tomoe Reference Manual | ![]() |
---|---|---|---|---|
TomoeDict; void tomoe_dict_init (void); void tomoe_dict_quit (void); const gchar* tomoe_dict_get_default_module_dir (void); void tomoe_dict_set_default_module_dir (const gchar *dir); void tomoe_dict_load (const gchar *base_dir); TomoeModule* tomoe_dict_load_module (const gchar *name); void tomoe_dict_unload (void); GList* tomoe_dict_get_registered_types (void); GList* tomoe_dict_get_log_domains (void); TomoeDict* tomoe_dict_new (const gchar *name, const gchar *first_property, ...); const gchar* tomoe_dict_get_name (TomoeDict *dict); gboolean tomoe_dict_register_char (TomoeDict *dict, TomoeChar *chr); gboolean tomoe_dict_unregister_char (TomoeDict *dict, const gchar *utf8); TomoeChar* tomoe_dict_get_char (TomoeDict *dict, const gchar *utf8); GList* tomoe_dict_search (TomoeDict *dict, TomoeQuery *query); gboolean tomoe_dict_flush (TomoeDict *dict); gboolean tomoe_dict_is_editable (TomoeDict *dict); gboolean tomoe_dict_is_available (TomoeDict *dict); gchar* tomoe_dict_get_available_private_utf8 (TomoeDict *dict);
typedef struct _TomoeDict TomoeDict;
The TomoeDict struct contains only private fields and should not be directly accessed.
const gchar* tomoe_dict_get_default_module_dir (void);
Returns : |
void tomoe_dict_set_default_module_dir (const gchar *dir);
dir : |
TomoeDict* tomoe_dict_new (const gchar *name, const gchar *first_property, ...);
Create a new TomoeDict.
name : |
The name of dictionary type. |
first_property : |
the name of the first property. |
... : |
the value of the first property, followed optionally by more name/value pairs, followed by NULL |
Returns : | a new TomoeDict. |
const gchar* tomoe_dict_get_name (TomoeDict *dict);
Get the dictionary name.
dict : |
a TomoeDict. |
Returns : | the name of the dictionary. |
gboolean tomoe_dict_register_char (TomoeDict *dict, TomoeChar *chr);
Register a TomoeChar object.
dict : |
a TomoeDict object. |
chr : |
a TomoeChar object to register. |
Returns : | TRUE if success. |
gboolean tomoe_dict_unregister_char (TomoeDict *dict, const gchar *utf8);
Unregister a TomoeChar object which has utf8 code point.
dict : |
a TomoeDict object. |
utf8 : |
UTF-8 encoded value of the character. |
Returns : | TRUE if success. |
TomoeChar* tomoe_dict_get_char (TomoeDict *dict, const gchar *utf8);
Get a TomoeChar object which has utf8 code point
dict : |
a TomoeDict object. |
utf8 : |
UTF-8 encoded value of the character. |
Returns : | a TomoeChar object. |
GList* tomoe_dict_search (TomoeDict *dict, TomoeQuery *query);
dict : |
|
query : |
|
Returns : |
gchar* tomoe_dict_get_available_private_utf8 (TomoeDict *dict);
dict : |
|
Returns : |