From 30334ea852046cf3fb129cf2d8ce293c1627f323 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 15 Sep 2008 00:48:04 +0000 Subject: Use the result of the fuzzy search in the current list as a lower bound for the fuzzy search in the compendiums. --- gettext-tools/src/msgl-fsearch.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gettext-tools/src/msgl-fsearch.h') diff --git a/gettext-tools/src/msgl-fsearch.h b/gettext-tools/src/msgl-fsearch.h index 6793cef..d5f7962 100644 --- a/gettext-tools/src/msgl-fsearch.h +++ b/gettext-tools/src/msgl-fsearch.h @@ -1,5 +1,5 @@ /* Fast fuzzy searching among messages. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -39,10 +39,13 @@ extern message_fuzzy_index_ty * const char *canon_charset); /* Find a good match for the given msgctxt and msgid in the given fuzzy index. - The match does not need to be optimal. */ + The match does not need to be optimal. + Ignore matches for which the fuzzy_search_goal_function is < LOWER_BOUND. + LOWER_BOUND must be >= FUZZY_THRESHOLD. */ extern message_ty * message_fuzzy_index_search (message_fuzzy_index_ty *findex, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid, + double lower_bound); /* Free a fuzzy index. */ extern void -- cgit v1.1