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 ""
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]