code: def _parse_prefix_as_idd(idd_pattern, number):
      
      match = idd_pattern.match(number)
      if match:
          match_end = match.end()
          # Only strip this if the first digit after the match is not a 0, since
          # country calling codes cannot begin with 0.
          digit_match = _CAPTURING_DIGIT_PATTERN.search(number[match_end:])
          if digit_match:
              normalized_group = normalize_digits_only(digit_match.group(1))
              if normalized_group == U_ZERO:
                  return (False, number)
          return (True, number[match_end:])
      return (False, number)
docs: Strips the IDD from the start of the number if present.
  
      Helper function used by _maybe_strip_i18n_prefix_and_normalize().
  
      Returns a 2-tuple:
        - Boolean indicating if IDD was stripped
        - Number with IDD stripped