Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

wordvec.h File Reference


Detailed Description

Word vector.

Author:
Raphael Manfredi
Date:
2001-2003

Go to the source code of this file.

Data Structures

struct  word_vec_t
 Search query splitting. More...


Functions

void word_vec_init (void)
 Initialize matching data structures.

void word_vec_close (void)
 Terminate matching data structures.

guint word_vec_make (const gchar *query, word_vec_t **wovec)
 Given a query string, return a dynamically built word vector, along with the amount of items held into that vector.

void word_vec_free (word_vec_t *wovec, guint n)
 Release a word vector, containing `n' items.


Function Documentation

void word_vec_close void   ) 
 

Terminate matching data structures.

void word_vec_free word_vec_t wovec,
guint  n
 

Release a word vector, containing `n' items.

void word_vec_init void   ) 
 

Initialize matching data structures.

guint word_vec_make const gchar *  query_str,
word_vec_t **  wovec
 

Given a query string, return a dynamically built word vector, along with the amount of items held into that vector.

Words are broken on non-alphanumeric boundaries.

Returns:
the amount of valid items in the built vector, and fill `wovec' with the pointer to the allocated vector. If there are no items, there is no vector returned.


Generated on Sun Feb 12 10:50:10 2006 for Gtk-Gnutella by doxygen 1.3.6