inline PRInt32 FindChar2(const char* aDest,PRUint32 aLength,PRUint32 anOffset,const PRUnichar aChar,PRBool aIgnoreCase) { const PRUnichar*  root=(PRUnichar*)aDest; const PRUnichar*  ptr=root+(anOffset-1); const PRUnichar*  last=root+aLength;
inline PRInt32 FindChar2(const char* aDest,PRUint32 aDestLength,PRInt32 anOffset,const PRUnichar aChar,PRBool aIgnoreCase,PRInt32 aCount) {
inline PRInt32 FindChar2(const char* aDest,PRUint32 aLength,PRUint32 anOffset,const PRUnichar aChar,PRBool aIgnoreCase) {  const PRUnichar*  root=(PRUnichar*)aDest;  const PRUnichar*  ptr=root+(anOffset-1);  const PRUnichar*  last=root+aLength;  if(aIgnoreCase) {    PRUnichar theChar=nsCRT::ToUpper(aChar);    while(++ptr<last){      if(nsCRT::ToUpper(*ptr)==theChar)        return ptr-root;    }  }  else {    while(++ptr<last){      if(*ptr==aChar)        return (ptr-root);    }  }  return kNotFound;}