2008-09-14 Bruno Haible <bruno@clisp.org>
+ * message.h (message_list_search_fuzzy, FUZZY_THRESHOLD): Clarify
+ documentation.
+
* msgmerge.c (struct definitions_ty): Rename field 'findex' to
'comp_findex', and 'findex_init_lock' to 'comp_findex_init_lock'.
(definitions_init): Update.
extern message_ty *
message_list_search (message_list_ty *mlp,
const char *msgctxt, const char *msgid);
+/* Return the message in MLP which maximizes the fuzzy_search_goal_function.
+ Only messages with a fuzzy_search_goal_function > FUZZY_THRESHOLD are
+ considered. In case of several messages with the same goal function value,
+ the one with the smaller index is returned. */
extern message_ty *
message_list_search_fuzzy (message_list_ty *mlp,
const char *msgctxt, const char *msgid);
double lower_bound);
/* The threshold for fuzzy-searching.
- A message is considered only if fstrcmp (msg, given) > FUZZY_THRESHOLD. */
+ A message is considered only if
+ fuzzy_search_goal_function (mp, given, 0.0) > FUZZY_THRESHOLD. */
#define FUZZY_THRESHOLD 0.6