Share via


HexFormat.FromHexDigits Method

Definition

Overloads

FromHexDigits(ICharSequence)

Returns the int value parsed from a string of up to eight hexadecimal characters.

FromHexDigits(String)

Returns the int value parsed from a string of up to eight hexadecimal characters.

FromHexDigits(ICharSequence, Int32, Int32)

Returns the int value parsed from a string range of up to eight hexadecimal characters.

FromHexDigits(String, Int32, Int32)

Returns the int value parsed from a string range of up to eight hexadecimal characters.

FromHexDigits(ICharSequence)

Returns the int value parsed from a string of up to eight hexadecimal characters.

[Android.Runtime.Register("fromHexDigits", "(Ljava/lang/CharSequence;)I", "", ApiSince=34)]
public static int FromHexDigits (Java.Lang.ICharSequence? string);
[<Android.Runtime.Register("fromHexDigits", "(Ljava/lang/CharSequence;)I", "", ApiSince=34)>]
static member FromHexDigits : Java.Lang.ICharSequence -> int

Parameters

string
ICharSequence

a CharSequence containing up to eight hexadecimal characters

Returns

the value parsed from the string

Attributes

Remarks

Returns the int value parsed from a string of up to eight hexadecimal characters. The hexadecimal characters are parsed from most significant to least significant using #fromHexDigit(int) to form an unsigned value. The value is zero extended to 32 bits and is returned as an int.

Java documentation for java.util.HexFormat.fromHexDigits(java.lang.CharSequence).

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

FromHexDigits(String)

Returns the int value parsed from a string of up to eight hexadecimal characters.

public static int FromHexDigits (string? string);
static member FromHexDigits : string -> int

Parameters

string
String

a CharSequence containing up to eight hexadecimal characters

Returns

the value parsed from the string

Remarks

Returns the int value parsed from a string of up to eight hexadecimal characters. The hexadecimal characters are parsed from most significant to least significant using #fromHexDigit(int) to form an unsigned value. The value is zero extended to 32 bits and is returned as an int.

Java documentation for java.util.HexFormat.fromHexDigits(java.lang.CharSequence).

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

FromHexDigits(ICharSequence, Int32, Int32)

Returns the int value parsed from a string range of up to eight hexadecimal characters.

[Android.Runtime.Register("fromHexDigits", "(Ljava/lang/CharSequence;II)I", "", ApiSince=34)]
public static int FromHexDigits (Java.Lang.ICharSequence? string, int fromIndex, int toIndex);
[<Android.Runtime.Register("fromHexDigits", "(Ljava/lang/CharSequence;II)I", "", ApiSince=34)>]
static member FromHexDigits : Java.Lang.ICharSequence * int * int -> int

Parameters

string
ICharSequence

a CharSequence containing the characters

fromIndex
Int32

the initial index of the range, inclusive

toIndex
Int32

the final index of the range, exclusive.

Returns

the value parsed from the string range

Attributes

Remarks

Returns the int value parsed from a string range of up to eight hexadecimal characters. The characters in the range fromIndex to toIndex, exclusive, are parsed from most significant to least significant using #fromHexDigit(int) to form an unsigned value. The value is zero extended to 32 bits and is returned as an int.

Java documentation for java.util.HexFormat.fromHexDigits(java.lang.CharSequence, int, 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

FromHexDigits(String, Int32, Int32)

Returns the int value parsed from a string range of up to eight hexadecimal characters.

public static int FromHexDigits (string? string, int fromIndex, int toIndex);
static member FromHexDigits : string * int * int -> int

Parameters

string
String

a CharSequence containing the characters

fromIndex
Int32

the initial index of the range, inclusive

toIndex
Int32

the final index of the range, exclusive.

Returns

the value parsed from the string range

Remarks

Returns the int value parsed from a string range of up to eight hexadecimal characters. The characters in the range fromIndex to toIndex, exclusive, are parsed from most significant to least significant using #fromHexDigit(int) to form an unsigned value. The value is zero extended to 32 bits and is returned as an int.

Java documentation for java.util.HexFormat.fromHexDigits(java.lang.CharSequence, int, 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