예제 #1
0
def getChipDisplayedNameSecondaryPrefix(chipDisplayedName):
    """
    Returns all the second portion of the chip displayed name for UI to display
    e.g., for chip name "318 Select", return "Select"
    """
    isVersionInfoFound, prefixes = Chip.getChipDisplayedNameParts(chipDisplayedName)

    return prefixes[-1] if len(prefixes) > 1 else ""
예제 #2
0
def getChipDisplayedNameSecondaryPrefix(chipDisplayedName):
    """
    Returns all the second portion of the chip displayed name for UI to display
    e.g., for chip name "318 Select", return "Select"
    """
    isVersionInfoFound, prefixes = Chip.getChipDisplayedNameParts(chipDisplayedName)

    return prefixes[-1] if len(prefixes) > 1 else ""
예제 #3
0
def getChipDisplayedNamePrimaryPrefix(chipDisplayedName):
    """
    Returns all the primary chip displayed name for UI to display
    e.g., for chip name "318 Select", return 318
    """
    isVersionInfoFound, prefixes = Chip.getChipDisplayedNameParts(chipDisplayedName)

    return prefixes[0]
예제 #4
0
def getChipDisplayedNamePrimaryPrefix(chipDisplayedName):
    """
    Returns all the primary chip displayed name for UI to display
    e.g., for chip name "318 Select", return 318
    """
    isVersionInfoFound, prefixes = Chip.getChipDisplayedNameParts(chipDisplayedName)

    return prefixes[0]