- text
- The number to be formatted, will be modified with the formatting
- defaultFormattingType
- The default formatting rules to apply if the number does not begin with +[country_code]
Formats a phone number in-place. Currently PhoneNumberUtils.FORMAT_JAPAN and PhoneNumberUtils.FORMAT_NANP is supported as a second argument.