AntlPhonenumber.Nif (AntlPhonenumber v0.1.1) View Source

Link to this section Summary

Link to this section Functions

Link to this function

format(number, format, ref_iso_country_code)

View Source

Specs

format(String.Chars.t(), String.Chars.t(), String.Chars.t()) ::
  {:ok, String.Chars.t()} | {:error, String.Chars.t()}
Link to this function

get_country_code(number, ref_iso_country_code)

View Source

Specs

get_country_code(String.Chars.t(), String.Chars.t()) ::
  {:ok, integer()} | {:error, String.Chars.t()}
Link to this function

get_plus_e164_example(iso_country_code, type)

View Source

Specs

get_plus_e164_example(String.Chars.t(), String.Chars.t()) :: String.Chars.t()
Link to this function

get_type(number, ref_iso_country_code)

View Source

Specs

get_type(String.Chars.t(), String.Chars.t()) ::
  {:ok, String.Chars.t()} | {:error, String.Chars.t()}
Link to this function

is_possible(number, ref_iso_country_code)

View Source

Specs

is_possible(String.Chars.t(), String.Chars.t()) :: boolean()
Link to this function

is_valid(number, ref_iso_country_code)

View Source

Specs

is_valid(String.Chars.t(), String.Chars.t()) :: boolean()
Link to this function

to_iso_country_code(country_code)

View Source

Specs

to_iso_country_code(String.Chars.t()) :: String.Chars.t()