Stringier.Glyph by Patrick Kelly

<PackageReference Include="Stringier.Glyph" Version="4.3.1" />

 Glyph

Represents a glyph; a UNICODE Grapheme Cluster.
public int Utf16SequenceLength { get; }

Returns the length in code units ( Char) of the UTF-16 sequence required to represent this grapheme.

public int Utf8SequenceLength { get; }

Returns the length in code units ( Byte) of the UTF-8 sequence required to represent this grapheme.

public Glyph(char char)

Initializes a new Glyph from the given char.

public Glyph(Rune rune)

Initializes a new Glyph from the given rune.

public Glyph(string sequence)

Initializes a new Glyph from the given sequence.

public Glyph(ReadOnlySpan<char> sequence)

Initializes a new Glyph from the given sequence.

public static Glyph GetGlyphAt(string input, int index)

Gets the Glyph which begins at index index in string input.

public static bool op_Equality(Glyph left, Glyph right)

public static bool op_GreaterThan(Glyph left, Glyph right)

public static bool op_GreaterThanOrEqual(Glyph left, Glyph right)

public static Glyph op_Implicit(char char)

public static Glyph op_Implicit(Rune rune)

public static bool op_Inequality(Glyph left, Glyph right)

public static bool op_LessThan(Glyph left, Glyph right)

public static bool op_LessThanOrEqual(Glyph left, Glyph right)

public static string Reverse(string text)

Reverses the graphemes in this text.

public static string Reverse(char[] text)

Reverses the graphemes in this text.

public static string Reverse(Span<char> text)

Reverses the graphemes in this text.

public static string Reverse(ReadOnlySpan<char> text)

Reverses the graphemes in this text.

public static Glyph ToLower(Glyph glyph)

Converts the glyph to its lowercase equivalent.

public static Glyph ToLower(Glyph glyph, CultureInfo culture)

Converts the glyph to its lowercase equivalent using specified culture-specific formatting information.

public static Glyph ToLowerInvariant(Glyph glyph)

Converts the glyph to its lowercase equivalent using the casing rules of the invariant culture.

public static Glyph ToTitleInvariant(Glyph glyph)

Converts the glyph to its titlecase equivalent using the casing rules of the invariant culture.

public static Glyph ToUpper(Glyph glyph)

Converts the glyph to its uppercase equivalent.

public static Glyph ToUpper(Glyph glyph, CultureInfo culture)

Converts the glyph to its uppercase equivalent using specified culture-specific formatting information.

public static Glyph ToUpperInvariant(Glyph glyph)

Converts the glyph to its uppercase equivalent using the casing rules of the invariant culture.

public int CompareTo(object obj)

public int CompareTo(Glyph other)

public int EncodeToUtf16(Span<char> destination)

Encode this Glyph to a UTF-16 destination buffer.

public int EncodeToUtf8(Span<byte> destination)

Encode this Glyph to a UTF-8 destination buffer.

public bool Equals(Glyph other)