[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.Utf32CodeSet

Class Utf32CodeSet

Namespace
GrapeCity.Documents.Text
Assembly
GcDocs.Imaging.dll

Specifies a set of UTF-32 characters (code points).

public class Utf32CodeSet
Inheritance
object
Utf32CodeSet
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Utf32CodeSet()

Initializes an instance of the Utf32CodeSet.

public Utf32CodeSet()

Utf32CodeSet(params UnicodeBlock[])

Initializes an instance of the Utf32CodeSet.

public Utf32CodeSet(params UnicodeBlock[] unicodeBlocks)

Parameters

unicodeBlocks UnicodeBlock[]

An array of named Unicode blocks.

Utf32CodeSet(params int[])

Initializes an instance of the Utf32CodeSet.

public Utf32CodeSet(params int[] firstLastCodes)

Parameters

firstLastCodes int[]

Pairs of the first and last UTF-32 characters forming intervals to append.

Properties

Intervals

Gets the list of intervals.

public List<Utf32Interval> Intervals { get; }

Property Value

System.Collections.Generic.List<T><Utf32Interval>

Methods

Append(UnicodeBlock)

Appends a named range of Unicode characters.

public Utf32CodeSet Append(UnicodeBlock unicodeBlock)

Parameters

unicodeBlock UnicodeBlock

The named range of Unicode characters.

Returns

Utf32CodeSet

The current instance of Utf32CodeSet.

Append(params UnicodeBlock[])

Appends several named ranges of Unicode characters.

public Utf32CodeSet Append(params UnicodeBlock[] unicodeBlocks)

Parameters

unicodeBlocks UnicodeBlock[]

An array of Unicode blocks to append.

Returns

Utf32CodeSet

The current instance of Utf32CodeSet.

Append(int, int)

Appends an interval of UTF-32 characters (code points).

public Utf32CodeSet Append(int firstCode, int lastCode)

Parameters

firstCode int

The first UTF-32 character (code point) of the interval.

lastCode int

The last UTF-32 character (code point) of the interval.

Returns

Utf32CodeSet

The current instance of Utf32CodeSet.

Exclude(UnicodeBlock)

Excludes a named range of Unicode characters.

public Utf32CodeSet Exclude(UnicodeBlock unicodeBlock)

Parameters

unicodeBlock UnicodeBlock

The named range of Unicode characters.

Returns

Utf32CodeSet

The current instance of Utf32CodeSet.

Exclude(params UnicodeBlock[])

Excludes several named ranges of Unicode characters.

public Utf32CodeSet Exclude(params UnicodeBlock[] unicodeBlocks)

Parameters

unicodeBlocks UnicodeBlock[]

An array of Unicode blocks to exclude.

Returns

Utf32CodeSet

The current instance of Utf32CodeSet.

Exclude(int, int)

Excludes an interval of UTF-32 characters (code points).

public Utf32CodeSet Exclude(int firstCode, int lastCode)

Parameters

firstCode int

The first UTF-32 character (code point) of the interval.

lastCode int

The last UTF-32 character (code point) of the interval.

Returns

Utf32CodeSet

The current instance of Utf32CodeSet.

GetInterval(UnicodeBlock)

Returns the first and last code points of a named range of Unicode characters.

public static (int, int) GetInterval(UnicodeBlock unicodeBlock)

Parameters

unicodeBlock UnicodeBlock

The named range of Unicode characters.

Returns

(int, int)

The first and last code points.

GetUnicodeBlock(int)

Returns a named range of Unicode characters for the specified UTF-32 character (code point).

public static UnicodeBlock GetUnicodeBlock(int codePoint)

Parameters

codePoint int

The UTF-32 character (code point).

Returns

UnicodeBlock

The named range.

ToHashSet()

Creates a HashSet with the current set of codes.

public HashSet<int> ToHashSet()

Returns

System.Collections.Generic.HashSet<T><int>