aCount = aDestLength;
aCount = PRInt32(aDestLength);
inline PRInt32 RFindChar2(const char* aDest,PRUint32 aDestLength,PRInt32 anOffset,const PRUnichar aChar,PRBool aIgnoreCase,PRInt32 aCount) {  if(anOffset<0)    anOffset=(PRInt32)aDestLength-1;  if(aCount<0)    aCount = aDestLength;  if((0<aDestLength) && ((PRUint32)anOffset<aDestLength)) {     if(0<aCount) {      const PRUnichar* root      = (PRUnichar*)aDest;      const PRUnichar* rightmost = root+anOffset;        const PRUnichar* min       = rightmost-aCount+1;      const PRUnichar* leftmost  = (min<root) ? root: min;      if(aIgnoreCase) {            PRUnichar theChar=nsCRT::ToUpper(aChar);        while(leftmost<rightmost){          if(nsCRT::ToUpper(*rightmost)==theChar)            return rightmost-root;          --rightmost;        }      }      else {        while(leftmost<=rightmost){          if((*rightmost)==aChar)            return rightmost-root;          --rightmost;        }      }    }  }  return kNotFound;}