Share via


PhoneNumberUtils.ConvertKeypadLettersToDigits(String) Method

Definition

Translates any alphabetic letters (i.

[Android.Runtime.Register("convertKeypadLettersToDigits", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? ConvertKeypadLettersToDigits (string? input);
[<Android.Runtime.Register("convertKeypadLettersToDigits", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
static member ConvertKeypadLettersToDigits : string -> string

Parameters

input
String

Returns

the input string, with alpha letters converted to numeric digits using the phone keypad letter mapping. For example, an input of "1-800-GOOG-411" will return "1-800-4664-411".

Attributes

Remarks

Translates any alphabetic letters (i.e. [A-Za-z]) in the specified phone number into the equivalent numeric digits, according to the phone keypad letter mapping described in ITU E.161 and ISO/IEC 9995-8.

Java documentation for android.telephony.PhoneNumberUtils.convertKeypadLettersToDigits(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to