const char* ptr = mimeTypes;
char* ptr = mimeTypes;
static PRUint32 CalculateVariantCount(const char* mimeTypes){    PRUint32 variants = 0;    const char* ptr = mimeTypes;    while (*ptr) {        if (*ptr == MTYPE_END) 	    variants++;        ++ptr;     }    return variants;}