Top | ![]() |
![]() |
![]() |
![]() |
KkcEmptySegmentDictionary * | kkc_empty_segment_dictionary_new () |
gboolean | kkc_segment_dictionary_lookup_candidates () |
gchar ** | kkc_segment_dictionary_complete () |
gboolean | kkc_segment_dictionary_select_candidate () |
gboolean | kkc_segment_dictionary_purge_candidate () |
KkcSegmentDictionary is implemented by KkcEmptySegmentDictionary, KkcSystemSegmentDictionary, KkcUserDictionary and KkcUserSegmentDictionary.
KkcEmptySegmentDictionary *
kkc_empty_segment_dictionary_new (void
);
gboolean kkc_segment_dictionary_lookup_candidates (KkcSegmentDictionary *self
,const gchar *midasi
,gboolean okuri
,KkcCandidate ***candidates
,int *candidates_length1
);
Lookup candidates in the dictionary.
self |
the KkcSegmentDictionary instance |
|
midasi |
. a midasi (title) string to lookup . |
[in] |
okuri |
. whether to search okuri-ari entries or okuri-nasi entries . |
[in] |
candidates |
. output location of candidates . |
[out][array length=candidates_length1] |
candidates_length1 |
length of the |
gchar ** kkc_segment_dictionary_complete (KkcSegmentDictionary *self
,const gchar *midasi
,int *result_length1
);
Return an array of strings which matches midasi.
gboolean kkc_segment_dictionary_select_candidate (KkcSegmentDictionary *self
,KkcCandidate *candidate
);
Select a candidate in the dictionary.
gboolean kkc_segment_dictionary_purge_candidate (KkcSegmentDictionary *self
,KkcCandidate *candidate
);
Purge a candidate in the dictionary.
#define KKC_TYPE_EMPTY_SEGMENT_DICTIONARY (kkc_empty_segment_dictionary_get_type ())
The type for KkcEmptySegmentDictionary.
struct KkcEmptySegmentDictionary;
Null implementation of Dictionary.
struct KkcEmptySegmentDictionaryClass { GObjectClass parent_class; };
The class structure for KKC_TYPE_EMPTY_SEGMENT_DICTIONARY
. All the fields in this structure are private and should never be accessed directly.
typedef struct _KkcSegmentDictionary KkcSegmentDictionary;
Base interface of segment dictionaries.
struct KkcSegmentDictionaryIface { GTypeInterface parent_iface; gboolean (*lookup_candidates) (KkcSegmentDictionary* self, const gchar* midasi, gboolean okuri, KkcCandidate*** candidates, int* candidates_length1); gchar** (*complete) (KkcSegmentDictionary* self, const gchar* midasi, int* result_length1); gboolean (*select_candidate) (KkcSegmentDictionary* self, KkcCandidate* candidate); gboolean (*purge_candidate) (KkcSegmentDictionary* self, KkcCandidate* candidate); };
Interface for creating KkcSegmentDictionary implementations.
the parent interface structure |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |