version 1.202, 2007/05/25 15:17:00
|
version 1.203, 2007/10/18 08:59:20
|
Line 175 char *EscapeXML (const char *string)
|
Line 175 char *EscapeXML (const char *string)
|
int buffer_len; |
int buffer_len; |
int buffer_free_mem; |
int buffer_free_mem; |
char *ptr; |
char *ptr; |
char *entity = NULL; |
const char *entity = NULL; |
int new_chars; |
int new_chars; |
void *status; |
void *status; |
|
|
Line 373 void ExplodeURL (char *url, char **proto
|
Line 373 void ExplodeURL (char *url, char **proto
|
Converts a Thot PicType into the equivalent MIME type. If no convertion |
Converts a Thot PicType into the equivalent MIME type. If no convertion |
is possible, it returns NULL. |
is possible, it returns NULL. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
char *PicTypeToMIME (PicType contentType) |
const char *PicTypeToMIME (PicType contentType) |
{ |
{ |
char *mime_type; |
const char *mime_type; |
|
|
switch (contentType) |
switch (contentType) |
{ |
{ |
Line 460 ThotBool ImageElement (Document doc, cha
|
Line 460 ThotBool ImageElement (Document doc, cha
|
DocImageMimeType |
DocImageMimeType |
Returns the MIME type of a docImage document. |
Returns the MIME type of a docImage document. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
char *DocImageMimeType (Document doc) |
const char *DocImageMimeType (Document doc) |
{ |
{ |
char *mime_type; |
const char *mime_type; |
LoadedImageDesc *pImage; |
LoadedImageDesc *pImage; |
PicType type; |
PicType type; |
Element image; |
Element image; |