UnicodeRange Struct

Represents a range of Unicode code points.

public readonly struct UnicodeRange : IEquatable<UnicodeRange>
Implements

Constructors

NameDescription
UnicodeRange(int, int)Initializes a new instance of the UnicodeRange struct.

UnicodeRange(int, int)

UnicodeRange.cs

Initializes a new instance of the UnicodeRange struct.

public UnicodeRange(int start, int end)

Parameters

start int
The first code point in the range (inclusive).
end int
The last code point in the range (inclusive).

Properties

NameDescription
EndGets the last code point in the range (inclusive).
LengthGets the number of code points in the range.
StartGets the first code point in the range (inclusive).

Gets the last code point in the range (inclusive).

public int End { get; }

Property value

int

Gets the number of code points in the range.

public int Length { get; }

Property value

int

Gets the first code point in the range (inclusive).

public int Start { get; }

Property value

int

Methods

NameDescription
Contains(int)Determines whether the specified code point is in this range.
Contains(Rune)Determines whether the specified rune is in this range.
Equals(UnicodeRange)
Equals(object?)
GetHashCode()
ToString()

Contains overloads

Contains(int)

UnicodeRange.cs

Determines whether the specified code point is in this range.

public bool Contains(int codePoint)
Parameters
codePoint int
The code point to check.
Returns

bool true if the code point is in the range; otherwise, false.

Contains(Rune)

UnicodeRange.cs

Determines whether the specified rune is in this range.

public bool Contains(Rune rune)
Parameters
rune Rune
The rune to check.
Returns

bool true if the rune is in the range; otherwise, false.

Equals overloads

Equals(UnicodeRange)

UnicodeRange.cs
public bool Equals(UnicodeRange other)
Parameters
other UnicodeRange
Returns

bool

No documentation is available.

Equals(object?)

UnicodeRange.cs
public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

UnicodeRange.cs
public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

UnicodeRange.cs
public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(UnicodeRange, UnicodeRange)
operator !=(UnicodeRange, UnicodeRange)

operator ==(UnicodeRange, UnicodeRange)

UnicodeRange.cs
public static bool operator ==(UnicodeRange left, UnicodeRange right)

Parameters

left UnicodeRange
right UnicodeRange

Returns

bool

No documentation is available.

operator !=(UnicodeRange, UnicodeRange)

UnicodeRange.cs
public static bool operator !=(UnicodeRange left, UnicodeRange right)

Parameters

left UnicodeRange
right UnicodeRange

Returns

bool

No documentation is available.