def _parse_prefix_as_idd(idd_pattern, number):
 match = idd_pattern.match(number)
 if match:
  match_end = match.end()
  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)

def _parse_prefix_as_idd ( idd_pattern , number ) : match = idd_pattern . match ( number ) if match : match_end = match . end ( ) 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 )
strips the idd from the start of the number if present .