![]() |
![]() |
![]() |
Camel Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
CamelIndex; gchar * (*CamelIndexNorm) (CamelIndex *idx
,const gchar *word
,gpointer data
); CamelIndexCursor; CamelIndexCursor * camel_index_cursor_new (CamelIndex *idx
,const gchar *name
); const gchar * camel_index_cursor_next (CamelIndexCursor *idc
); void camel_index_cursor_reset (CamelIndexCursor *idc
); CamelIndexName; CamelIndexName * camel_index_name_new (CamelIndex *idx
,const gchar *name
); void camel_index_name_add_word (CamelIndexName *name
,const gchar *word
); gsize camel_index_name_add_buffer (CamelIndexName *name
,const gchar *buffer
,gsize len
); #define CAMEL_INDEX_DELETED CamelIndex * camel_index_new (const gchar *path
,gint flags
); void camel_index_construct (CamelIndex *Param1
,const gchar *path
,gint flags
); gint camel_index_rename (CamelIndex *Param1
,const gchar *path
); void camel_index_set_normalise (CamelIndex *idx
,CamelIndexNorm func
,gpointer data
); gint camel_index_sync (CamelIndex *idx
); gint camel_index_compress (CamelIndex *idx
); gint camel_index_delete (CamelIndex *idx
); gint camel_index_has_name (CamelIndex *idx
,const gchar *name
); CamelIndexName * camel_index_add_name (CamelIndex *idx
,const gchar *name
); gint camel_index_write_name (CamelIndex *idx
,CamelIndexName *idn
); CamelIndexCursor * camel_index_find_name (CamelIndex *idx
,const gchar *name
); void camel_index_delete_name (CamelIndex *idx
,const gchar *name
); CamelIndexCursor * camel_index_find (CamelIndex *idx
,const gchar *word
); CamelIndexCursor * camel_index_words (CamelIndex *idx
); CamelIndexCursor * camel_index_names (CamelIndex *idx
);
typedef struct { CamelObject parent; struct _CamelIndexPrivate *priv; gchar *path; guint32 version; guint32 flags; /* open flags */ guint32 state; CamelIndexNorm normalise; gpointer normalise_data; } CamelIndex;
gchar * (*CamelIndexNorm) (CamelIndex *idx
,const gchar *word
,gpointer data
);
|
|
|
|
|
|
Returns : |
typedef struct { CamelObject parent; struct _CamelIndexCursorPrivate *priv; CamelIndex *index; } CamelIndexCursor;
CamelIndexCursor * camel_index_cursor_new (CamelIndex *idx
,const gchar *name
);
|
|
|
|
Returns : |
const gchar * camel_index_cursor_next (CamelIndexCursor *idc
);
|
|
Returns : |
typedef struct { CamelObject parent; struct _CamelIndexNamePrivate *priv; CamelIndex *index; gchar *name; /* name being indexed */ GByteArray *buffer; /* used for normalisation */ GHashTable *words; /* unique list of words */ } CamelIndexName;
CamelIndexName * camel_index_name_new (CamelIndex *idx
,const gchar *name
);
|
|
|
|
Returns : |
void camel_index_name_add_word (CamelIndexName *name
,const gchar *word
);
|
|
|
gsize camel_index_name_add_buffer (CamelIndexName *name
,const gchar *buffer
,gsize len
);
|
|
|
|
|
|
Returns : |
CamelIndex * camel_index_new (const gchar *path
,gint flags
);
|
|
|
|
Returns : |
void camel_index_construct (CamelIndex *Param1
,const gchar *path
,gint flags
);
|
|
|
|
|
gint camel_index_rename (CamelIndex *Param1
,const gchar *path
);
|
|
|
|
Returns : |
void camel_index_set_normalise (CamelIndex *idx
,CamelIndexNorm func
,gpointer data
);
|
|
|
|
|
gint camel_index_has_name (CamelIndex *idx
,const gchar *name
);
|
|
|
|
Returns : |
CamelIndexName * camel_index_add_name (CamelIndex *idx
,const gchar *name
);
|
|
|
|
Returns : |
gint camel_index_write_name (CamelIndex *idx
,CamelIndexName *idn
);
|
|
|
|
Returns : |
CamelIndexCursor * camel_index_find_name (CamelIndex *idx
,const gchar *name
);
|
|
|
|
Returns : |
void camel_index_delete_name (CamelIndex *idx
,const gchar *name
);
|
|
|
CamelIndexCursor * camel_index_find (CamelIndex *idx
,const gchar *word
);
|
|
|
|
Returns : |