iOS port from Google's phone number handling library.