| Top |
| CamelTrie * | camel_trie_new () |
|
|
camel_trie_free () |
|
|
camel_trie_add () |
| const |
camel_trie_search () |
CamelTrie *
camel_trie_new (gboolean icase);
Creates a new CamelTrie. If icase
is TRUE
[skip]
Since: 2.24
void camel_trie_free (CamelTrie *trie);
Frees the memory associated with the CamelTrie trie
.
[skip]
Since: 2.24
void camel_trie_add (CamelTrie *trie,const,gchar *pattern);gint pattern_id
Add a new pattern to the CamelTrie trie
.
[skip]
trie |
The CamelTrie to add a pattern to. |
|
pattern |
The pattern to add. |
|
pattern_id |
The id to use for the pattern. |
Since: 2.24
constgchar * camel_trie_search (CamelTrie *trie,const,gchar *buffer,gsize buflen);gint *matched_id
Try to match the string buffer
with a pattern in trie
.
[skip]
trie |
The CamelTrie to search in. |
|
buffer |
The string to match against a pattern in |
[array length=buflen][type gchar] |
buflen |
The length of |
|
matched_id |
An integer address to store the matched pattern id in. |
[out] |
Since: 2.24