// Copyright (c) Six Labors. // Licensed under the Six Labors Split License. namespace SixLabors.Fonts { /// /// Describes one source-order Unicode word-boundary segment run. /// internal readonly struct WordSegmentRun { /// /// Initializes a new instance of the struct. /// /// The inclusive grapheme insertion index where the word-boundary segment starts. /// The exclusive grapheme insertion index where the word-boundary segment ends. /// The inclusive UTF-16 index where the word-boundary segment starts. /// The exclusive UTF-16 index where the word-boundary segment ends. public WordSegmentRun( int graphemeStart, int graphemeEnd, int stringStart, int stringEnd) { this.GraphemeStart = graphemeStart; this.GraphemeEnd = graphemeEnd; this.StringStart = stringStart; this.StringEnd = stringEnd; } /// /// Gets the inclusive grapheme insertion index where the word-boundary segment starts. /// public int GraphemeStart { get; } /// /// Gets the exclusive grapheme insertion index where the word-boundary segment ends. /// public int GraphemeEnd { get; } /// /// Gets the inclusive UTF-16 index where the word-boundary segment starts. /// public int StringStart { get; } /// /// Gets the exclusive UTF-16 index where the word-boundary segment ends. /// public int StringEnd { get; } } }