version 1.110, 2001/03/27 12:09:01
|
version 1.111, 2001/04/10 12:26:51
|
Line 368 ThotBool IsHTMLName (const char *path)
|
Line 368 ThotBool IsHTMLName (const char *path)
|
IsXMLName |
IsXMLName |
returns TRUE if path points to an XML resource. |
returns TRUE if path points to an XML resource. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
ThotBool IsXMLName (const char *path) |
ThotBool IsXMLName (const char *path) |
{ |
{ |
char temppath[MAX_LENGTH]; |
char temppath[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
Line 404 ThotBool IsXMLName (const ch
|
Line 404 ThotBool IsXMLName (const ch
|
IsMathMLName |
IsMathMLName |
returns TRUE if path points to an MathML resource. |
returns TRUE if path points to an MathML resource. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
ThotBool IsMathMLName (const char *path) |
ThotBool IsMathMLName (const char *path) |
{ |
{ |
char temppath[MAX_LENGTH]; |
char temppath[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
Line 434 ThotBool IsMathMLName (const
|
Line 434 ThotBool IsMathMLName (const
|
IsSVGName |
IsSVGName |
returns TRUE if path points to an MathML resource. |
returns TRUE if path points to an MathML resource. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
ThotBool IsSVGName (const char *path) |
ThotBool IsSVGName (const char *path) |
{ |
{ |
char temppath[MAX_LENGTH]; |
char temppath[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
Line 464 ThotBool IsSVGName (const ch
|
Line 464 ThotBool IsSVGName (const ch
|
IsCSSName |
IsCSSName |
returns TRUE if path points to an XML resource. |
returns TRUE if path points to an XML resource. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
ThotBool IsCSSName (const char *path) |
ThotBool IsCSSName (const char *path) |
{ |
{ |
char temppath[MAX_LENGTH]; |
char temppath[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
Line 494 ThotBool IsCSSName (const ch
|
Line 494 ThotBool IsCSSName (const ch
|
IsImageName |
IsImageName |
returns TRUE if path points to an image resource. |
returns TRUE if path points to an image resource. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
ThotBool IsImageName (const char *path) |
ThotBool IsImageName (const char *path) |
{ |
{ |
char temppath[MAX_LENGTH]; |
char temppath[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
Line 526 ThotBool IsImageName (const
|
Line 526 ThotBool IsImageName (const
|
IsImageType |
IsImageType |
returns TRUE if type points to an image resource. |
returns TRUE if type points to an image resource. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
ThotBool IsImageType (const char *type) |
ThotBool IsImageType (const char *type) |
{ |
{ |
char temptype[MAX_LENGTH]; |
char temptype[MAX_LENGTH]; |
int i; |
int i; |
Line 542 ThotBool IsImageType (const
|
Line 542 ThotBool IsImageType (const
|
temptype[i] = tolower (temptype[i]); |
temptype[i] = tolower (temptype[i]); |
i++; |
i++; |
} |
} |
if ((!strcmp (temptype, "gif")) || (!strcmp (temptype, "x-xbitmap")) || |
if (!strcmp (temptype, "gif") || !strcmp (temptype, "x-xbitmap") || |
(!strcmp (temptype, "x-xpixmap")) || (!strcmp (temptype, "jpeg")) || |
!strcmp (temptype, "x-xpixmap") || !strcmp (temptype, "jpeg") || |
(!strcmp (temptype, "png"))) |
!strcmp (temptype, "png")) |
return (TRUE); |
return (TRUE); |
return (FALSE); |
return (FALSE); |
} |
} |
Line 552 ThotBool IsImageType (const
|
Line 552 ThotBool IsImageType (const
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
IsTextName |
IsTextName |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
ThotBool IsTextName (const char *path) |
ThotBool IsTextName (const char *path) |
{ |
{ |
char temppath[MAX_LENGTH]; |
char temppath[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
char suffix[MAX_LENGTH]; |
Line 574 ThotBool IsTextName (const c
|
Line 574 ThotBool IsTextName (const c
|
} |
} |
nsuffix[i] = EOS; |
nsuffix[i] = EOS; |
|
|
if ((!strcmp (nsuffix, "txt")) || (!strcmp (nsuffix, "dtd"))) |
if (!strcmp (nsuffix, "txt") || !strcmp (nsuffix, "dtd")) |
return (TRUE); |
return (TRUE); |
else if (!strcmp (nsuffix, "gz")) |
else if (!strcmp (nsuffix, "gz")) |
{ |
{ |
Line 588 ThotBool IsTextName (const c
|
Line 588 ThotBool IsTextName (const c
|
i++; |
i++; |
} |
} |
nsuffix[i] = EOS; |
nsuffix[i] = EOS; |
if ((!strcmp (nsuffix, "txt")) || (!strcmp (nsuffix, "dtd"))) |
if (!strcmp (nsuffix, "txt") || !strcmp (nsuffix, "dtd")) |
return (TRUE); |
return (TRUE); |
else |
else |
return (FALSE); |
return (FALSE); |