mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00
bug 287340: remove unused files (unicode char. category interface and its implementation) r=smontagu, sr=dbaron
This commit is contained in:
parent
1d51e20612
commit
e7499921ca
@ -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<endbuf){
|
||||
// XXX These loops should be modified to handle non-BMP characters.
|
||||
while((p < endbuf) && (!ucIsAlpha(*p)))
|
||||
{
|
||||
p++;
|
||||
|
@ -648,9 +648,13 @@ static inline PRBool IsNonwordChar(PRUnichar chr)
|
||||
{
|
||||
// a non-word character is one that can end a word, such as whitespace or
|
||||
// most punctuation.
|
||||
// mscott: We probably need to modify this to make it work for non ascii based languages...
|
||||
// but then again our spell checker doesn't support multi byte languages anyway.
|
||||
return ((chr != '\'') && (GetCat(chr) != 5));
|
||||
// mscott: We probably need to modify this to make it work for non ascii
|
||||
// based languages... but then again our spell checker doesn't support
|
||||
// multi byte languages anyway.
|
||||
// jshin: one way to make the word boundary checker more generic is to
|
||||
// use 'word breaker(s)' in intl.
|
||||
// Need to fix callers (of IsNonwordChar) to pass PRUint32
|
||||
return ((chr != '\'') && (GetCat(PRUint32(chr)) != 5));
|
||||
}
|
||||
|
||||
// There are certain conditions when we don't want to spell check a node. In particular
|
||||
|
@ -48,7 +48,6 @@ EXPORTS = \
|
||||
nsICaseConversion.h \
|
||||
nsIOrderIdFormater.h \
|
||||
nsITextTransform.h \
|
||||
nsIUGenCategory.h \
|
||||
nsIUGenDetailCategory.h \
|
||||
nsUnicharUtilCIID.h \
|
||||
nsHankakuToZenkakuCID.h \
|
||||
|
@ -53,9 +53,10 @@ REQUIRES = xpcom \
|
||||
intl \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS = cattable.h
|
||||
|
||||
CPPSRCS = \
|
||||
nsCaseConversionImp2.cpp \
|
||||
nsCategoryImp.cpp \
|
||||
nsHankakuToZenkaku.cpp \
|
||||
nsEntityConverter.cpp \
|
||||
nsSaveAsCharset.cpp \
|
||||
|
Loading…
x
Reference in New Issue
Block a user