|
| From: | Saad1Mufti |
| Subject: | Re: [aspell-devel] Patch To Implement ignore-case In aspell-0.60-pre2 |
| Date: | Thu, 12 Aug 2004 13:36:01 EDT |
|
In a message dated 8/12/2004 1:29:39 PM Eastern Daylight Time,
address@hidden writes:
Can you please resend the patch but with some context or using gnu diff I have attached the results of diff -u of the original aspell0.60-pre2 with
my changes to this e-mail. Let me know if this format is what you wanted.
--------------------------
Saad Mufti
America Online
|
--- aspell-0.60-pre2/modules/speller/default/language.cpp 2004-07-14
07:47:26.000000000 -0400
+++ modules/speller/default/language.cpp 2004-08-12 12:46:14.000000000
-0400
@@ -396,6 +396,18 @@
try_again:
const char * word = word0;
const char * inlist = inlist0;
+ if (!case_insensitive)
+ goto try_normal;
+ word = word0;
+ inlist = inlist0;
+ while (*word && *inlist && lang->to_upper(*word) ==
lang->to_upper(*inlist)) ++word, ++inlist;
+ if (*inlist) goto fail;
+ if (end && lang->special(*word).end) ++word;
+ if (*word) goto fail;
+ return true;
+ try_normal:
+ word = word0;
+ inlist = inlist0;
if (begin) {
if (*word == *inlist || *word == lang->to_title(*inlist)) ++word,
++inlist;
else goto try_upper;
--- aspell-0.60-pre2/modules/speller/default/speller_impl.cpp 2004-07-21
15:03:10.000000000 -0400
+++ modules/speller/default/speller_impl.cpp 2004-08-12 12:38:03.000000000
-0400
@@ -457,6 +457,7 @@
RET_ON_ERR(add_dicts(this, to_add));
s_cmp.lang = lang_;
+ s_cmp.case_insensitive = config_->retrieve_bool("ignore-case");
s_cmp_begin.lang = lang_;
s_cmp_begin.end = false;
| [Prev in Thread] | Current Thread | [Next in Thread] |