if((0<aDestLength) && ((PRUint32)anOffset<aDestLength)) {
if((aChar<256) && (0<aDestLength) && ((PRUint32)anOffset<aDestLength)) {
inline PRInt32 FindChar1(const char* aDest,PRUint32 aDestLength,PRInt32 anOffset,const PRUnichar aChar,PRBool aIgnoreCase,PRInt32 aCount) {  if(anOffset<0)    anOffset=0;  if(aCount<0)    aCount = (PRInt32)aDestLength;  if((0<aDestLength) && ((PRUint32)anOffset<aDestLength)) {     if(0<aCount) {      const char* left= aDest+anOffset;      const char* last= left+aCount;      const char* max = aDest+aDestLength;      const char* end = (last<max) ? last : max;      if(aIgnoreCase) {            char theChar=(char)nsCRT::ToUpper(aChar);        while(left<end){          if(nsCRT::ToUpper(*left)==theChar)            return left-aDest;          ++left;        }      }      else {        PRInt32 theMax = end-left;        if(0<theMax) {          char theChar=(char)aChar;          const char* result=(const char*)memchr(left, theChar, theMax);          if(result) {            return result-aDest;          }        }      }    }  }  return kNotFound;}