PRInt32 theIndex=0; PRUnichar*  theBuf=(PRUnichar*)aDest;
if(anOffset<0) anOffset=(PRInt32)aDestLength-1;
inline PRInt32 RFindChar2(const char* aDest,PRUint32 aDestLength,PRUint32 anOffset,const PRUnichar aChar,PRBool aIgnoreCase) {  PRInt32 theIndex=0;  PRUnichar*  theBuf=(PRUnichar*)aDest;  if(aIgnoreCase) {    PRUnichar theChar=nsCRT::ToUpper(aChar);    for(theIndex=(PRInt32)anOffset;theIndex>=0;theIndex--){      if(nsCRT::ToUpper(theBuf[theIndex])==theChar)        return theIndex;    }  }  else {    for(theIndex=(PRInt32)anOffset;theIndex>=0;theIndex--){      if(theBuf[theIndex]==aChar)        return theIndex;    }  }  return kNotFound;}