Go to the source code of this file.
#define NUM_MIME_TYPES 767 |
Enumerator |
---|
M_Type |
|
M_Extension |
|
static bool getFileExtension |
( |
const char * |
mimeType, |
|
|
char * |
extension, |
|
|
size_t |
length |
|
) |
| |
|
static |
Obtain default file extension for a give MIME type.
- Parameters
-
mimeType | a MIME type (lowercase string), e.g. "image/png" |
extension | a buffer in which to store the file extension; the default value is "txt" if no extension is found |
length | the size of the buffer extension |
- Returns
- true if a file extension is found for the given MIME type, otherwise false
static map* getFileExtensionMap |
( |
const char * |
mimeType, |
|
|
bool * |
hasExt |
|
) |
| |
|
static |
Obtain default file extension for a give MIME type.
- Parameters
-
mimeType | a MIME type (lowercase string), e.g. "image/png" |
hasExt | the value of this pointer is set to true if a default file extension is found, otherwise false |
- Returns
- a map with name "extension" and value set to file extension, e.g. "png"; if not found the default value is "txt"
static int isGeographic |
( |
const char * |
mimeType | ) |
|
|
static |