Skip to content

A RUST small library which maps E.164 international phone numbers to ISO 3166 country codes as well as the ISO 3166 country codes to country phone codes. Inspired by https://github.com/geneh/e164-phones-countries

License

Notifications You must be signed in to change notification settings

fastfailures/e164-phones-countries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A RUST small library which maps E.164 international phone numbers to ISO 3166 country codes as well as the ISO 3166 country codes to country phone codes. Inspired by https://github.com/geneh/e164-phones-countries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages