if (*src == CR)
if (*src == nsCRT::CR)
static T* ConvertUnknownBreaks(const T* inSrc, PRInt32& ioLen, const char* destBreak){  const T* src = inSrc;  const T* srcEnd = inSrc + ioLen;		// includes null, if any    PRInt32 destBreakLen = nsCRT::strlen(destBreak);  PRInt32 finalLen = 0;  while (src < srcEnd)  {    if (*src == CR)    {      if (src < srcEnd && src[1] == LF)      {        // CRLF        finalLen += destBreakLen;        src ++;      }      else      {        // Lone CR        finalLen += destBreakLen;      }    }    else if (*src == LF)    {      // Lone LF      finalLen += destBreakLen;    }    else    {      finalLen ++;    }    src ++;  }    T* resultString = (T *)nsMemory::Alloc(sizeof(T) * finalLen);  if (!resultString) return nsnull;  src = inSrc;  srcEnd = inSrc + ioLen;		// includes null, if any  T* dst = resultString;    while (src < srcEnd)  {    if (*src == CR)    {      if (src < srcEnd && src[1] == LF)      {        // CRLF        AppendLinebreak(dst, destBreak);        src ++;      }      else      {        // Lone CR        AppendLinebreak(dst, destBreak);      }    }    else if (*src == LF)    {      // Lone LF      AppendLinebreak(dst, destBreak);    }    else    {      *dst++ = *src;    }    src ++;  }  ioLen = finalLen;  return resultString;}