fix SoftNcRunner GM code normalization.

This commit is contained in:
2026-05-06 13:21:19 +08:00
parent 0fe9497552
commit 2f57932000
1238 changed files with 69405 additions and 22511 deletions
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class SingleLineSegmenter | HiAPI-C# 2025 ">
<meta name="description" content="Maps each physical source line to one (no multi-line merging).">
<link rel="icon" href="../img/HiAPI.favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
@@ -97,7 +97,8 @@ Class SingleLineSegmenter
<dl><dt>Assembly</dt><dd>HiMech.dll</dd></dl>
</div>
<div class="markdown summary"></div>
<div class="markdown summary"><p>Maps each physical source line to one <a class="xref" href="Hi.NcParsers.Sentence.html">Sentence</a> (no multi-line merging).</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
@@ -191,7 +192,8 @@ Class SingleLineSegmenter
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>Display name of this segmenter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -222,7 +224,8 @@ Class SingleLineSegmenter
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>XML element name for <a class="xref" href="Hi.Common.XmlUtils.XFactory.html#Hi_Common_XmlUtils_XFactory_Regs">Regs</a> registration.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -250,35 +253,37 @@ Class SingleLineSegmenter
</h2>
<a id="Hi_NcParsers_Segmenters_SingleLineSegmenter_GetSegment_" data-uid="Hi.NcParsers.Segmenters.SingleLineSegmenter.GetSegment*"></a>
<a id="Hi_NcParsers_Segmenters_SingleLineSegmenter_GetSentences_" data-uid="Hi.NcParsers.Segmenters.SingleLineSegmenter.GetSentences*"></a>
<h3 id="Hi_NcParsers_Segmenters_SingleLineSegmenter_GetSegment_Hi_Common_Collections_LazyLinkedListNode_Hi_Common_FileLines_IndexedFileLine__Hi_Common_Collections_LazyLinkedListNode_Hi_Common_FileLines_IndexedFileLine___Hi_Common_Collections_LazyLinkedListNode_Hi_Common_FileLines_IndexedFileLine___Hi_NcParsers_NcDiagnosticProgress_" data-uid="Hi.NcParsers.Segmenters.SingleLineSegmenter.GetSegment(Hi.Common.Collections.LazyLinkedListNode{Hi.Common.FileLines.IndexedFileLine},Hi.Common.Collections.LazyLinkedListNode{Hi.Common.FileLines.IndexedFileLine}@,Hi.Common.Collections.LazyLinkedListNode{Hi.Common.FileLines.IndexedFileLine}@,Hi.NcParsers.NcDiagnosticProgress)">
GetSegment(LazyLinkedListNode&lt;IndexedFileLine&gt;, out LazyLinkedListNode&lt;IndexedFileLine&gt;, out LazyLinkedListNode&lt;IndexedFileLine&gt;, NcDiagnosticProgress)
<h3 id="Hi_NcParsers_Segmenters_SingleLineSegmenter_GetSentences_Hi_Common_Collections_LazyLinkedList_Hi_Common_FileLines_IndexedFileLine__Hi_NcParsers_NcDiagnosticProgress_" data-uid="Hi.NcParsers.Segmenters.SingleLineSegmenter.GetSentences(Hi.Common.Collections.LazyLinkedList{Hi.Common.FileLines.IndexedFileLine},Hi.NcParsers.NcDiagnosticProgress)">
GetSentences(LazyLinkedList&lt;IndexedFileLine&gt;, NcDiagnosticProgress)
</h3>
<div class="markdown level1 summary"><p>Get a sentence block according to the <code class="paramref">srcNode</code>.
the <code class="paramref">srcNode</code> can be any node in the nodes from <code class="paramref">beginNode</code> to the exclusive <code class="paramref">endNode</code>.</p>
<div class="markdown level1 summary"><p>Segments the indexed file lines into <a class="xref" href="Hi.NcParsers.Sentence.html">Sentence</a>s.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void GetSegment(LazyLinkedListNode&lt;IndexedFileLine&gt; srcNode, out LazyLinkedListNode&lt;IndexedFileLine&gt; beginNode, out LazyLinkedListNode&lt;IndexedFileLine&gt; endNode, NcDiagnosticProgress ncDiagnosticProgress)</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Sentence&gt; GetSentences(LazyLinkedList&lt;IndexedFileLine&gt; indexedFileLines, NcDiagnosticProgress ncDiagnosticProgress)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>srcNode</code> <a class="xref" href="Hi.Common.Collections.LazyLinkedListNode-1.html">LazyLinkedListNode</a>&lt;<a class="xref" href="Hi.Common.FileLines.IndexedFileLine.html">IndexedFileLine</a>&gt;</dt>
<dd></dd>
<dt><code>beginNode</code> <a class="xref" href="Hi.Common.Collections.LazyLinkedListNode-1.html">LazyLinkedListNode</a>&lt;<a class="xref" href="Hi.Common.FileLines.IndexedFileLine.html">IndexedFileLine</a>&gt;</dt>
<dd></dd>
<dt><code>endNode</code> <a class="xref" href="Hi.Common.Collections.LazyLinkedListNode-1.html">LazyLinkedListNode</a>&lt;<a class="xref" href="Hi.Common.FileLines.IndexedFileLine.html">IndexedFileLine</a>&gt;</dt>
<dd><p>exclusive end node</p>
<dt><code>indexedFileLines</code> <a class="xref" href="Hi.Common.Collections.LazyLinkedList-1.html">LazyLinkedList</a>&lt;<a class="xref" href="Hi.Common.FileLines.IndexedFileLine.html">IndexedFileLine</a>&gt;</dt>
<dd><p>The lazy linked list of indexed file lines.</p>
</dd>
<dt><code>ncDiagnosticProgress</code> <a class="xref" href="Hi.NcParsers.NcDiagnosticProgress.html">NcDiagnosticProgress</a></dt>
<dd></dd>
<dd><p>Diagnostic progress reporter.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.NcParsers.Sentence.html">Sentence</a>&gt;</dt>
<dd><p>A sequence of <a class="xref" href="Hi.NcParsers.Sentence.html">Sentence</a>s.</p>
</dd>
</dl>