Diff for /Amaya/amaya/AHTURLTools.c between versions 1.87 and 1.88

version 1.87, 2000/03/02 14:33:07 version 1.88, 2000/03/02 16:58:31
Line 338  const CHAR_T*        path; Line 338  const CHAR_T*        path;
   
    ustrcpy (temppath, path);     ustrcpy (temppath, path);
    ExtractSuffix (temppath, suffix);     ExtractSuffix (temppath, suffix);
      while (suffix[0] != WC_EOS)
    /* Normalize the suffix */  
    i = 0;  
    while (suffix[i] != WC_EOS && i < MAX_LENGTH -1)  
      {  
        nsuffix[i] = utolower (suffix[i]);  
        i++;  
      }  
    nsuffix[i] = WC_EOS;  
    if (!ustrcmp (nsuffix, TEXT("html")) ||  
        !ustrcmp (nsuffix, TEXT("htm")) ||  
        !ustrcmp (nsuffix, TEXT("shtml")) ||  
        !ustrcmp (nsuffix, TEXT("jsp")) ||  
        !ustrcmp (nsuffix, TEXT("xht")) ||  
        !ustrcmp (nsuffix, TEXT("xhtm")) ||  
        !ustrcmp (nsuffix, TEXT("xhtml")))  
      return (TRUE);  
    else if (!ustrcmp (nsuffix, TEXT("gz")))  
      {       {
        /* take into account compressed files */  
        ExtractSuffix (temppath, suffix);         
        /* Normalize the suffix */         /* Normalize the suffix */
        i = 0;         i = 0;
        while (suffix[i] != WC_EOS && i < MAX_LENGTH -1)         while (suffix[i] != WC_EOS && i < MAX_LENGTH -1)
Line 368  const CHAR_T*        path; Line 349  const CHAR_T*        path;
          }           }
        nsuffix[i] = WC_EOS;         nsuffix[i] = WC_EOS;
        if (!ustrcmp (nsuffix, TEXT("html")) ||         if (!ustrcmp (nsuffix, TEXT("html")) ||
            !ustrcmp (nsuffix, TEXT("htm")) ||             !ustrcmp (nsuffix, TEXT("htm")) ||
            !ustrcmp (nsuffix, TEXT("shtml")) ||             !ustrcmp (nsuffix, TEXT("shtml")) ||
            !ustrcmp (nsuffix, TEXT("jsp")) ||             !ustrcmp (nsuffix, TEXT("jsp")) ||
            !ustrcmp (nsuffix, TEXT("xht")) ||             !ustrcmp (nsuffix, TEXT("xht")) ||
            !ustrcmp (nsuffix, TEXT("xhtm")) ||             !ustrcmp (nsuffix, TEXT("xhtm")) ||
            !ustrcmp (nsuffix, TEXT("xhtml")))             !ustrcmp (nsuffix, TEXT("xhtml")))
    
          return (TRUE);           return (TRUE);
          else if (!ustrcmp (nsuffix, TEXT("gz")))
            {
              /* take into account compressed files */
              ExtractSuffix (temppath, suffix);       
              /* Normalize the suffix */
              i = 0;
              while (suffix[i] != WC_EOS && i < MAX_LENGTH -1)
                {
                  nsuffix[i] = utolower (suffix[i]);
                  i++;
                }
              nsuffix[i] = WC_EOS;
              if (!ustrcmp (nsuffix, TEXT("html")) ||
                  !ustrcmp (nsuffix, TEXT("htm")) ||
                  !ustrcmp (nsuffix, TEXT("shtml")) ||
                  !ustrcmp (nsuffix, TEXT("jsp")) ||
                  !ustrcmp (nsuffix, TEXT("xht")) ||
                  !ustrcmp (nsuffix, TEXT("xhtm")) ||
                  !ustrcmp (nsuffix, TEXT("xhtml")))
                return (TRUE);
              else
                return (FALSE);
            }
        else         else
          return (FALSE);           /* check if there is another suffix */
            ExtractSuffix (temppath, suffix);
      }       }
    else     
      return (FALSE);     return (FALSE);
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------

Removed from v.1.87  
changed lines
  Added in v.1.88


Webmaster