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