diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-14 23:02:56 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-14 23:02:56 +0000 |
commit | 0c0d8c00f552778bc48730aaae7a5d2a6dbc24f7 (patch) | |
tree | a5bf14dd67ecd916713b74bf27687ab8903520f7 | |
parent | b54fd9261806e7ce43abfd1d60e60064d285e793 (diff) | |
download | enchant-0c0d8c00f552778bc48730aaae7a5d2a6dbc24f7.tar.gz |
update documentation
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20793 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/enchant.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/enchant.c b/src/enchant.c index 660ceb9..d9cb041 100644 --- a/src/enchant.c +++ b/src/enchant.c @@ -78,10 +78,10 @@ enchant_get_registry_value_ex (int current_user, const char * const prefix, cons /** * enchant_get_registry_value - * @prefix: - * @key: + * @prefix: Your category, such as "Ispell" or "Myspell" + * @key: The tag within your category that you're interested in * - * Returns: + * Returns: the value if it exists, or %null otherwise. Must be free'd */ ENCHANT_MODULE_EXPORT (char *) enchant_get_registry_value (const char * const prefix, const char * const key) @@ -387,8 +387,9 @@ enchant_dict_add_to_session (EnchantDict * dict, const char *const word, * @cor: The non-null correction word, in UTF-8 encoding * @cor_len: The non-zero byte length of @cor * - * An implementation of "store_replacement" is not guaranteed to work in all cases. - * This function's implementation may vary by provider. + * Notes that you replaced @mis with @cor, so it's possibly more likely + * that future occurrences of @mis will be replaced with @cor. So it might + * bump @cor up in the suggestion list. */ ENCHANT_MODULE_EXPORT (void) enchant_dict_store_replacement (EnchantDict * dict, @@ -401,6 +402,7 @@ enchant_dict_store_replacement (EnchantDict * dict, g_return_if_fail (cor); g_return_if_fail (cor_len); + /* if it's not implemented, it's not worth emulating */ if (dict->store_replacement) { (*dict->store_replacement) (dict, mis, mis_len, cor, cor_len); |