Diff for /Amaya/amaya/AHTURLTools.c between versions 1.122 and 1.123

version 1.122, 2001/08/30 16:16:02 version 1.123, 2001/09/24 09:37:36
Line 45  void         ConvertToLowerCase (char *s Line 45  void         ConvertToLowerCase (char *s
    return;     return;
   
  for (i = 0; string[i] != EOS; i++)   for (i = 0; string[i] != EOS; i++)
    string[i] = utolower (string[i]);     string[i] = tolower (string[i]);
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 479  ThotBool IsHTMLName (const char *path) Line 479  ThotBool IsHTMLName (const char *path)
       i = 0;        i = 0;
       while (suffix[i] != EOS && i < MAX_LENGTH -1)        while (suffix[i] != EOS && i < MAX_LENGTH -1)
         {          {
           nsuffix[i] = utolower (suffix[i]);            nsuffix[i] = tolower (suffix[i]);
           i++;            i++;
         }          }
       nsuffix[i] = EOS;        nsuffix[i] = EOS;
Line 499  ThotBool IsHTMLName (const char *path) Line 499  ThotBool IsHTMLName (const char *path)
           i = 0;            i = 0;
           while (suffix[i] != EOS && i < MAX_LENGTH -1)            while (suffix[i] != EOS && i < MAX_LENGTH -1)
             {              {
               nsuffix[i] = utolower (suffix[i]);                nsuffix[i] = tolower (suffix[i]);
               i++;                i++;
             }              }
           nsuffix[i] = EOS;            nsuffix[i] = EOS;
Line 668  ThotBool IsImageName (const char *path) Line 668  ThotBool IsImageName (const char *path)
    i = 0;     i = 0;
    while (suffix[i] != EOS && i < MAX_LENGTH -1)     while (suffix[i] != EOS && i < MAX_LENGTH -1)
      {       {
        nsuffix[i] = utolower (suffix[i]);         nsuffix[i] = tolower (suffix[i]);
        i++;         i++;
      }       }
    nsuffix[i] = EOS;     nsuffix[i] = EOS;
Line 1689  static char   *HTCanon (char **filename, Line 1689  static char   *HTCanon (char **filename,
     strptr = host;                                  /* Convert to lower-case */      strptr = host;                                  /* Convert to lower-case */
     while (strptr < path)      while (strptr < path)
       {        {
          *strptr = utolower (*strptr);           *strptr = tolower (*strptr);
          strptr++;           strptr++;
       }        }
           
Line 1815  void         SimplifyUrl (char **url) Line 1815  void         SimplifyUrl (char **url)
     {      {
       /* Find host name */        /* Find host name */
       access = *url;        access = *url;
       while (access < path && (*access = utolower (*access)))        while (access < path && (*access = tolower (*access)))
             access++;              access++;
       path += 3;        path += 3;
       while ((newptr = strstr (path, "://")) != NULL)        while ((newptr = strstr (path, "://")) != NULL)
Line 1845  void         SimplifyUrl (char **url) Line 1845  void         SimplifyUrl (char **url)
       while (*newptr)        while (*newptr)
         {          {
           /* Make group or host lower case */            /* Make group or host lower case */
           *newptr = utolower (*newptr);            *newptr = tolower (*newptr);
           newptr++;            newptr++;
         }          }
       /* Doesn't need to do any more */        /* Doesn't need to do any more */

Removed from v.1.122  
changed lines
  Added in v.1.123


Webmaster