Table of Contents

Class SingleLineSegmenter

Namespace
Hi.NcParsers.Segmenters
Assembly
HiMech.dll

Maps each physical source line to one Sentence (no multi-line merging).

public class SingleLineSegmenter : ISegmenter, IToXElement
Inheritance
SingleLineSegmenter
Implements
Inherited Members
Extension Methods

Properties

Name

Display name of this segmenter.

public string Name { get; }

Property Value

string

XName

XML element name for Regs registration.

public static string XName { get; }

Property Value

string

Methods

GetSentences(LazyLinkedList<IndexedFileLine>, NcDiagnosticProgress)

Segments the indexed file lines into Sentences.

public IEnumerable<Sentence> GetSentences(LazyLinkedList<IndexedFileLine> indexedFileLines, NcDiagnosticProgress ncDiagnosticProgress)

Parameters

indexedFileLines LazyLinkedList<IndexedFileLine>

The lazy linked list of indexed file lines.

ncDiagnosticProgress NcDiagnosticProgress

Diagnostic progress reporter.

Returns

IEnumerable<Sentence>

A sequence of Sentences.

ToXElement()

Get the XElement to represent the object.

public XElement ToXElement()

Returns

XElement

XElement to represent the object.