def GetAccelIndex(label):
    """
    Returns the mnemonic index of the label and the label stripped of the ampersand mnemonic
    (e.g. 'lab&el' ==> will result in 3 and labelOnly = label).

    :param string `label`: a string possibly containining an ampersand.
    """
    indexAccel = 0
    while True:
        indexAccel = label.find('&', indexAccel)
        if indexAccel == -1:
            return indexAccel, label
        if label[indexAccel:indexAccel + 2] == '&&':
            label = label[0:indexAccel] + label[indexAccel + 1:]
            indexAccel += 1
        else:
            break
    labelOnly = label[0:indexAccel] + label[indexAccel + 1:]
    return indexAccel, labelOnly
