if (*buffer == CR || *buffer == LF || *buffer == 0)
if (*buffer == nsCRT::CR || *buffer == nsCRT::LF || *buffer == 0)
nsMsgI18NParseMetaCharset(nsFileSpec* fileSpec) {   static char charset[kMAX_CSNAME+1];   char buffer[512];   nsInputFileStream fileStream(*fileSpec);   *charset = '\0';   while (!fileStream.eof() && !fileStream.failed() &&          fileStream.is_open()) {     fileStream.readline(buffer, 512);     if (*buffer == CR || *buffer == LF || *buffer == 0)       continue;     for (int i = 0; i < (int)PL_strlen(buffer); i++) {       buffer[i] = toupper(buffer[i]);     }     if (PL_strstr(buffer, "/HEAD"))       break;     if (PL_strstr(buffer, "META") &&         PL_strstr(buffer, "HTTP-EQUIV") &&         PL_strstr(buffer, "CONTENT-TYPE") &&         PL_strstr(buffer, "CHARSET")         )     {       char *cp = PL_strstr(PL_strstr(buffer, "CHARSET"), "=") + 1;       char seps[]   = " \"\'";       char *token;       char* newStr;       token = nsCRT::strtok(cp, seps, &newStr);       if (token != NULL)       {         PL_strcpy(charset, token);       }     }   }   return charset; } 