Short.Decode(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.
Decodes a String
into a Short
.
[Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/Short;", "")]
public static Java.Lang.Short? Decode (string? nm);
[<Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/Short;", "")>]
static member Decode : string -> Java.Lang.Short
Parameters
- nm
- String
the String
to decode.
Returns
a Short
object holding the short
value represented by nm
- Attributes
Exceptions
if string
cannot be parsed as a short value.
Remarks
Decodes a String
into a Short
. Accepts decimal, hexadecimal, and octal numbers given by the following grammar:
<blockquote> <dl> <dt>DecodableString:<dd>Sign<sub>opt</sub> DecimalNumeral<dd>Sign<sub>opt</sub>0x
HexDigits<dd>Sign<sub>opt</sub>0X
HexDigits<dd>Sign<sub>opt</sub>#
HexDigits<dd>Sign<sub>opt</sub>0
OctalDigits<dt>Sign:<dd>-
<dd>+
</dl> </blockquote>
DecimalNumeral, HexDigits, and OctalDigits are as defined in section {
Java documentation for java.lang.Short.decode(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.