Prose.Graphemes

References
public sealed class Prose.Graphemes
A string made up of complete graphemes. That is, instead of an array of char values, it consists of an array of string symbols which consists of base chars and their combining chars.

Constructors

Graphemes

#
public Graphemes(string text)
Create a new grapheme sequence from a string.
text (string)

Properties

Empty

#
public static Prose.Graphemes Empty { get; }
Gets an empty graphemes string.

Length

#
public int Length { get; }
Gets the number of symbols in this string.

Indexers

this[]

#
public string this[int index] { get; }
Gets the symbol at the given index. Will return an empty string if the index is out of bounds.
index (int)

Methods

Append

#
public Prose.Graphemes Append(string suffix)
Append a string to this grapheme sequence.
suffix (string)

Insert

#
public Prose.Graphemes Insert(string infix, int index)
Insert a string into this grapheme sequence at the given index.
infix (string)
index (int)

IsComplexGlyph

#
public bool IsComplexGlyph(int index)
Gets whether the symbol at the given index consists of a base char plus additional combining characters.
index (int)

Prepend

#
public Prose.Graphemes Prepend(string prefix)
Prepend a string to this grapheme sequence.
prefix (string)

Replace

#
public Prose.Graphemes Replace(string infix, int index, int length)
Insert a string into this grapheme sequence at the given index.
infix (string)
index (int)
length (int)

ToString

#
public override string ToString()
Object.ToString