Method

EBookContactsPhoneNumberget_country_code

since: 3.8

Declaration [src]

gint
e_phone_number_get_country_code (
  const EPhoneNumber* phone_number,
  EPhoneNumberCountrySource* source
)

Description [src]

Queries the phone_numbers country calling code and optionally stores the country calling code’s origin in source. For instance when parsing “+1-617-5423789” this function would return one and assign E_PHONE_NUMBER_COUNTRY_FROM_FQTN to source.

Available since: 3.8

Parameters

source

Type: EPhoneNumberCountrySource

An optional location for storing the phone number’s origin, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: gint

A valid country calling code, or zero if no code is known.