e164-phones-countries

Crates.ioe164-phones-countries
lib.rse164-phones-countries
version0.1.2
sourcesrc
created_at2015-07-24 04:28:07.802805
updated_at2015-12-11 23:58:31.338387
descriptionA small utility which maps E.164 international phone numbers to ISO 3166 country codes as well as the ISO 3166 country codes to country phone codes.
homepagehttps://github.com/visualjeff/e164-phones-countries
repositoryhttps://github.com/visualjeff/e164-phones-countries.git
max_upload_size
id2662
size32,944
Jeff (visualjeff)

documentation

https://github.com/visualjeff/e164-phones-countries

README

e164-phones-countries

A small utility which maps E.164 international phone numbers to ISO 3166 country codes as well as the ISO 3166 country codes to country phone codes.

Add e164-phones-countries dependency to your project Cargo.toml file:

[dependencies]
e164-phones-countries = "0.1.1"

Add e164-phones-countries to your project's source code:

extern crate e164-phones-countries;

use e164-phones-countries::find_iso_3166;
use e164-phones-countries::find_phone_cc;

Methods signatures:

fn find_iso_3166(phone:&str) -> &'static str
fn find_phone_cc(code:&str) -> &'static str

Commit count: 6

cargo fmt