static PRBool CommonPrefix(const PRUnichar *aString, const PRUnichar *aSubstr, PRInt32 aSubstrLen) { PRUint32 len = MinInt(aSubstrLen, nsCRT::strlen(aString));
static PRBool CommonPrefix(const PRUnichar *aString, const PRUnichar *aSubstr, PRInt32 aSubstrLen) { if (aSubstrLen == 0 || nsCRT::strlen(aString) < aSubstrLen) return PR_FALSE;
static PRBool CommonPrefix(const PRUnichar *aString, const PRUnichar *aSubstr, PRInt32 aSubstrLen) {  PRUint32 len = MinInt(aSubstrLen, nsCRT::strlen(aString));  if (len == 0) return PR_FALSE;  return (Compare(nsDependentString(aString, len),                  nsDependentString(aSubstr, len),                  nsCaseInsensitiveStringComparator()) == 0);}