Skip to main content

split_phone

Function split_phone 

Source
pub fn split_phone(phone: &str) -> Result<(String, String)>
Expand description

Split +<cc><national> into (cc, national digits). Spaces, dashes, dots and parentheses are ignored; a trunk 0 is dropped.