From e7499921ca95afabba057ae54deff5601a4ff37c Mon Sep 17 00:00:00 2001 From: "jshin%mailaps.org" Date: Wed, 6 Apr 2005 08:33:21 +0000 Subject: [PATCH] bug 287340: remove unused files (unicode char. category interface and its implementation) r=smontagu, sr=dbaron --- extensions/spellcheck/src/mozEnglishWordUtils.cpp | 4 +++- extensions/spellcheck/src/mozInlineSpellChecker.cpp | 10 +++++++--- intl/unicharutil/public/Makefile.in | 1 - intl/unicharutil/src/Makefile.in | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/extensions/spellcheck/src/mozEnglishWordUtils.cpp b/extensions/spellcheck/src/mozEnglishWordUtils.cpp index db54cea6be5c..e402a18c5fcf 100644 --- a/extensions/spellcheck/src/mozEnglishWordUtils.cpp +++ b/extensions/spellcheck/src/mozEnglishWordUtils.cpp @@ -163,7 +163,8 @@ NS_IMETHODIMP mozEnglishWordUtils::GetRootForm(const PRUnichar *aWord, PRUint32 // This needs vast improvement static PRBool ucIsAlpha(PRUnichar c) { - return (5 == GetCat(c)); + // XXX we have to fix callers to handle the full Unicode range + return (5 == GetCat(PRUint32(c))); } /* void FindNextWord (in wstring word, in PRUint32 length, in PRUint32 offset, out PRUint32 begin, out PRUint32 end); */ @@ -173,6 +174,7 @@ NS_IMETHODIMP mozEnglishWordUtils::FindNextWord(const PRUnichar *word, PRUint32 const PRUnichar *endbuf = word + length; const PRUnichar *startWord=p; if(p