#iso3166-1 #codes #iso #country-code #phone

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

3 releases

Uses old Rust 2015

0.1.2 Sep 13, 2015
0.1.1 Sep 6, 2015
0.1.0 Jul 24, 2015

#354 in Internationalization (i18n)

Download history 13/week @ 2024-07-27 31/week @ 2024-08-03 5/week @ 2024-08-10 12/week @ 2024-08-17 14/week @ 2024-08-24 3/week @ 2024-08-31 5/week @ 2024-09-07 1/week @ 2024-09-14 53/week @ 2024-09-21 1/week @ 2024-09-28 7/week @ 2024-10-05 9/week @ 2024-10-12 30/week @ 2024-10-19 21/week @ 2024-10-26 17/week @ 2024-11-02 21/week @ 2024-11-09

89 downloads per month

MIT license

32KB
908 lines

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

No runtime deps