def _parse_ipv4_number(input_):
    """Parses a single IPv4 number"""

    r = 10

    try:
        if len(input_) >= 2:
            if input_[:2].lower() == "0x":
                r = 16
                input_ = input_[2:]

            elif input_.startswith("0"):
                r = 8
                input_ = input_[1:]

        if input_ == "":
            return 0, False

        return int(input_, r), r != 10
    except ValueError:
        return None, False