def METHOD_NAME(cp):
    if (
        cp.startswith("U+")
        or cp.startswith("u+")
        or cp.startswith("0x")
        or cp.startswith("0X")
    ):
        return int(cp[2:], 16)
    return int(cp)