![]() |
![]() |
![]() |
Tomoe Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct 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
);
struct TomoeDict;
The TomoeDict struct contains only private fields and should not be directly accessed.
TomoeDict * tomoe_dict_new (const gchar *name
,const gchar *first_property
,...
);
Create a new TomoeDict.
|
The name of dictionary type. |
|
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.
|
a TomoeDict. |
Returns : |
the name of the dictionary. |
gboolean tomoe_dict_register_char (TomoeDict *dict
,TomoeChar *chr
);
Register a TomoeChar object.
|
a TomoeDict object. |
|
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.
|
a TomoeDict object. |
|
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
|
a TomoeDict object. |
|
UTF-8 encoded value of the character. |
Returns : |
a TomoeChar object. |
gchar * tomoe_dict_get_available_private_utf8
(TomoeDict *dict
);