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