version 1.171, 2003/11/18 08:10:23
|
version 1.172, 2003/12/12 11:45:57
|
Line 747 ThotBool IsCSSName (const char *path)
|
Line 747 ThotBool IsCSSName (const char *path)
|
} |
} |
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
|
IsRDFName |
|
returns TRUE if path points to an RDF resource. |
|
----------------------------------------------------------------------*/ |
|
ThotBool IsRDFName (const char *path) |
|
{ |
|
char temppath[MAX_LENGTH]; |
|
char suffix[MAX_LENGTH]; |
|
|
|
if (!path) |
|
return (FALSE); |
|
|
|
strcpy (temppath, path); |
|
TtaExtractSuffix (temppath, suffix); |
|
|
|
if (!strcasecmp (suffix, "rdf")) |
|
return (TRUE); |
|
else if (!strcmp (suffix, "gz")) |
|
{ |
|
/* take into account compressed files */ |
|
TtaExtractSuffix (temppath, suffix); |
|
if (!strcasecmp (suffix, "rdf")) |
|
return (TRUE); |
|
else |
|
return (FALSE); |
|
} |
|
else |
|
return (FALSE); |
|
} |
|
|
|
/*---------------------------------------------------------------------- |
IsImageName |
IsImageName |
returns TRUE if path points to an image resource. |
returns TRUE if path points to an image resource. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |