MessagePattern.ValidateArgumentName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates and parses an argument name or argument number string.
[Android.Runtime.Register("validateArgumentName", "(Ljava/lang/String;)I", "", ApiSince=24)]
public static int ValidateArgumentName (string? name);
[<Android.Runtime.Register("validateArgumentName", "(Ljava/lang/String;)I", "", ApiSince=24)>]
static member ValidateArgumentName : string -> int
Parameters
- name
- String
Input string.
Returns
>=0 if the name is a valid number, ARG_NAME_NOT_NUMBER (-1) if it is a "pattern identifier" but not all ASCII digits, ARG_NAME_NOT_VALID (-2) if it is neither.
- Attributes
Remarks
Validates and parses an argument name or argument number string. An argument name must be a "pattern identifier", that is, it must contain no Unicode Pattern_Syntax or Pattern_White_Space characters. If it only contains ASCII digits, then it must be a small integer with no leading zero.
Java documentation for android.icu.text.MessagePattern.validateArgumentName(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.