Diff for /Amaya/amaya/AHTURLTools.c between versions 1.102 and 1.103

version 1.102, 2000/09/21 11:18:40 version 1.103, 2000/10/06 15:21:36
Line 446  const STRING        path; Line 446  const STRING        path;
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
     IsMathMLName                                                         
     returns TRUE if path points to an MathML resource.
     ----------------------------------------------------------------------*/
   #ifdef __STDC__
   ThotBool             IsMathMLName (const STRING path)
   #else  /* __STDC__ */
   ThotBool             IsMathMLName (path)
   const STRING        path;
   #endif /* __STDC__ */
   {
      CHAR_T              temppath[MAX_LENGTH];
      CHAR_T              suffix[MAX_LENGTH];
   
      if (!path)
         return (FALSE);
   
      ustrcpy (temppath, path);
      ExtractSuffix (temppath, suffix);
   
      if (!ustrcasecmp (suffix, TEXT("mml")))
        return (TRUE);
      else if (!ustrcmp (suffix, TEXT("gz")))
        {
          /* take into account compressed files */
          ExtractSuffix (temppath, suffix);       
          if (!ustrcasecmp (suffix, TEXT("mml")))
            return (TRUE);
          else
            return (FALSE);
        }
      else
        return (FALSE);
   }
   
   /*----------------------------------------------------------------------
     IsSVGName                                                         
     returns TRUE if path points to an MathML resource.
     ----------------------------------------------------------------------*/
   #ifdef __STDC__
   ThotBool             IsSVGName (const STRING path)
   #else  /* __STDC__ */
   ThotBool             IsSVGName (path)
   const STRING        path;
   #endif /* __STDC__ */
   {
      CHAR_T              temppath[MAX_LENGTH];
      CHAR_T              suffix[MAX_LENGTH];
   
      if (!path)
         return (FALSE);
   
      ustrcpy (temppath, path);
      ExtractSuffix (temppath, suffix);
   
      if (!ustrcasecmp (suffix, TEXT("svg")))
        return (TRUE);
      else if (!ustrcmp (suffix, TEXT("gz")))
        {
          /* take into account compressed files */
          ExtractSuffix (temppath, suffix);       
          if (!ustrcasecmp (suffix, TEXT("svg")))
            return (TRUE);
          else
            return (FALSE);
        }
      else
        return (FALSE);
   }
   
   /*----------------------------------------------------------------------
   IsCSSName                                                             IsCSSName                                                         
   returns TRUE if path points to an XML resource.    returns TRUE if path points to an XML resource.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/

Removed from v.1.102  
changed lines
  Added in v.1.103


Webmaster