if (*p == CR && *(p+1) == LF)
if (*p == nsCRT::CR && *(p+1) == nsCRT::LF)
static void writeQPString(OFile *fp, const char *s){    const unsigned char *p = (const unsigned char *)s;	int current_column = 0;	static const char hexdigits[] = "0123456789ABCDEF";	PRBool white = PR_FALSE;	PRBool contWhite = PR_FALSE;	PRBool mb_p = PR_FALSE;	if (needsQuotedPrintable (s)) 	{		while (*p) {			if (*p == CR || *p == LF)			{				/* Whitespace cannot be allowed to occur at the end of the line.				So we encode " \n" as " =\n\n", that is, the whitespace, a				soft line break, and then a hard line break.				*/				if (white)				{					appendcOFile(fp,'=');					appendcOFile(fp,'\n');					appendcOFile(fp,'\t');					appendsOFile(fp,"=0D");					appendsOFile(fp,"=0A");					appendcOFile(fp,'=');					appendcOFile(fp,'\n');					appendcOFile(fp,'\t');				}				else				{					appendsOFile(fp,"=0D");					appendsOFile(fp,"=0A");					appendcOFile(fp,'=');					appendcOFile(fp,'\n');					appendcOFile(fp,'\t');					contWhite = PR_FALSE;				}				/* If its CRLF, swallow two chars instead of one. */				if (*p == CR && *(p+1) == LF)					p++;				white = PR_FALSE;				current_column = 0;			}			else			{				if ((*p >= 33 && *p <= 60) ||		/* safe printing chars */					(*p >= 62 && *p <= 126) ||					(mb_p && (*p == 61 || *p == 127 || *p == 0x1B)))				{					appendcOFile(fp,*p);					current_column++;					white = PR_FALSE;					contWhite = PR_FALSE;				}				else if (*p == ' ' || *p == '\t')		/* whitespace */				{					if (contWhite) 					{						appendcOFile(fp,'=');						appendcOFile(fp,hexdigits[*p >> 4]);						appendcOFile(fp,hexdigits[*p & 0xF]);						current_column += 3;						contWhite = PR_FALSE;					}					else					{						appendcOFile(fp,*p);						current_column++;					}					white = PR_TRUE;				}				else										/* print as =FF */				{					appendcOFile(fp,'=');					appendcOFile(fp,hexdigits[*p >> 4]);					appendcOFile(fp,hexdigits[*p & 0xF]);					current_column += 3;					white = PR_FALSE;					contWhite = PR_FALSE;				}				PR_ASSERT(current_column <= 76); /* Hard limit required by spec */				if (current_column >= 73 || ((*(p+1) == ' ') && (current_column + 3 >= 73)))		/* soft line break: "=\r\n" */				{					appendcOFile(fp,'=');					appendcOFile(fp,'\n');					appendcOFile(fp,'\t');					current_column = 0;					if (white)						contWhite = PR_TRUE;					else 						contWhite = PR_FALSE;					white = PR_FALSE;				}			}				p++;		}  /* while */	}  /* if */	else 	{	    while (*p) {			appendcOFile(fp,*p);			p++;		}	}}