![]() |
![]() |
![]() |
Evolution-Data-Server Manual: Utilities (libedataserver) | ![]() |
---|---|---|---|---|
Top | Description |
ETrie; ETrie * e_trie_new (gboolean icase
); void e_trie_free (ETrie *trie
); void e_trie_add (ETrie *trie
,const gchar *pattern
,gint pattern_id
); const gchar * e_trie_search (ETrie *trie
,const gchar *buffer
,gsize buflen
,gint *matched_id
);
typedef struct _ETrie ETrie;
ETrie
is deprecated and should not be used in newly-written code.
A trie data structure.
ETrie * e_trie_new (gboolean icase
);
e_trie_new
is deprecated and should not be used in newly-written code.
Creates a new ETrie. If icase
is TRUE
, then pattern matching
done by the ETrie will be case insensitive.
void e_trie_free (ETrie *trie
);
e_trie_free
is deprecated and should not be used in newly-written code.
Frees the memory associated with the ETrie trie
.
|
The ETrie to free. |
void e_trie_add (ETrie *trie
,const gchar *pattern
,gint pattern_id
);
e_trie_add
is deprecated and should not be used in newly-written code.
Add a new pattern to the ETrie trie
.
|
The ETrie to add a pattern to. |
|
The pattern to add. |
|
The id to use for the pattern. |