summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msgl-fsearch.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-09-15 00:48:04 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:50 +0200
commit30334ea852046cf3fb129cf2d8ce293c1627f323 (patch)
tree10d04a33f079d845dd34d11e3402b05b86738e9d /gettext-tools/src/msgl-fsearch.h
parent75498752a99fc15db82ffebc0176171892d576e8 (diff)
downloadexternal_gettext-30334ea852046cf3fb129cf2d8ce293c1627f323.zip
external_gettext-30334ea852046cf3fb129cf2d8ce293c1627f323.tar.gz
external_gettext-30334ea852046cf3fb129cf2d8ce293c1627f323.tar.bz2
Use the result of the fuzzy search in the current list as a lower bound for
the fuzzy search in the compendiums.
Diffstat (limited to 'gettext-tools/src/msgl-fsearch.h')
-rw-r--r--gettext-tools/src/msgl-fsearch.h9
1 files changed, 6 insertions, 3 deletions
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 <bruno@clisp.org>, 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