From 7444fd667393a3ea51efa02ab56b1a232c3a4361 Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Tue, 17 Sep 2002 22:49:00 +0000 Subject: [PATCH] Bug 162017: step 2: remove aIgnoreCase from FindChar1. r=peterv, sr=dbaron git-svn-id: svn://10.0.0.236/trunk@129832 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/string/obsolete/bufferRoutines.h | 49 ++++++------------- mozilla/string/obsolete/nsStr.cpp | 6 +-- .../xpcom/string/obsolete/bufferRoutines.h | 49 ++++++------------- mozilla/xpcom/string/obsolete/nsStr.cpp | 6 +-- 4 files changed, 36 insertions(+), 74 deletions(-) diff --git a/mozilla/string/obsolete/bufferRoutines.h b/mozilla/string/obsolete/bufferRoutines.h index 57dffe82535..5a0ac46b0e1 100644 --- a/mozilla/string/obsolete/bufferRoutines.h +++ b/mozilla/string/obsolete/bufferRoutines.h @@ -390,11 +390,10 @@ CopyChars gCopyChars[2][2]={ * @param aDestLength is the size (in char-units, not bytes) of the buffer * @param anOffset is the start pos to begin searching * @param aChar is the target character we're looking for - * @param aIgnorecase tells us whether to use a case sensitive search * @param aCount tells us how many characters to iterate through (which may be different than aLength); -1 means use full length. * @return index of pos if found, else -1 (kNotFound) */ -inline PRInt32 FindChar1(const char* aDest,PRUint32 aDestLength,PRInt32 anOffset,const PRUnichar aChar,PRBool aIgnoreCase,PRInt32 aCount) { +inline PRInt32 FindChar1(const char* aDest,PRUint32 aDestLength,PRInt32 anOffset,const PRUnichar aChar,PRInt32 aCount) { if(anOffset < 0) anOffset=0; @@ -414,30 +413,15 @@ inline PRInt32 FindChar1(const char* aDest,PRUint32 aDestLength,PRInt32 anOffset const char* max = aDest+aDestLength; const char* end = (last=0) { PRUnichar theChar=aDest.GetCharAt(theIndex); //read at end now... - PRInt32 thePos=::FindChar1(aSet,theSetLen,0,theChar,PR_FALSE,theSetLen); + PRInt32 thePos=::FindChar1(aSet,theSetLen,0,theChar,theSetLen); if(kNotFound=0) { PRUnichar theChar=aDest.GetCharAt(theIndex); //read at end now... - PRInt32 thePos=::FindChar1(aSet,theSetLen,0,theChar,PR_FALSE,theSetLen); + PRInt32 thePos=::FindChar1(aSet,theSetLen,0,theChar,theSetLen); if(kNotFound