Share via


HexFormat.IsHexDigit(Int32) Method

Definition

Returns true if the character is a valid hexadecimal character or codepoint.

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

Parameters

ch
Int32

a codepoint

Returns

true if the character is valid a hexadecimal character, otherwise false

Attributes

Remarks

Returns true if the character is a valid hexadecimal character or codepoint. The valid hexadecimal characters are: <ul> <li>'0' ('\u005Cu0030') through '9' ('\u005Cu0039') inclusive, <li>'A' ('\u005Cu0041') through 'F' ('\u005Cu0046') inclusive, and <li>'a' ('\u005Cu0061') through 'f' ('\u005Cu0066') inclusive. </ul>

Java documentation for java.util.HexFormat.isHexDigit(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