iOS port from libPhoneNumber (Google's phone number handling library)