Udostępnij za pośrednictwem


HexFormat.FromHexDigit(Int32) Method

Definition

Returns the value for the hexadecimal character or codepoint.

[Android.Runtime.Register("fromHexDigit", "(I)I", "", ApiSince=34)]
public static int FromHexDigit (int ch);
[<Android.Runtime.Register("fromHexDigit", "(I)I", "", ApiSince=34)>]
static member FromHexDigit : int -> int

Parameters

ch
Int32

a character or codepoint

Returns

the value 0-15

Attributes

Remarks

Returns the value for the hexadecimal character or codepoint. The value is: <ul> <li>(ch - '0') for '0' through '9' inclusive, <li>(ch - 'A' + 10) for 'A' through 'F' inclusive, and <li>(ch - 'a' + 10) for 'a' through 'f' inclusive. </ul>

Java documentation for java.util.HexFormat.fromHexDigit(int).

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