Stringlist methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
Line 72: Line 72:
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%count</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[Enqueue (Stringlist function)|Enqueue]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%count</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[Enqueue (Stringlist function)|Enqueue]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Find (Stringlist function)|Find]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Find (Stringlist function)|Find]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[FindImageItem (Stringlist function)|FindImageItem]]</span><span class="literal">(</span> <span class="term" title="NonObject">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">searchValue</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">operator</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[FindImageItem (Stringlist function)|FindImageItem]]</span><span class="literal">(</span> <span class="term" title="%output">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">searchValue</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">operator</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[FindImageItemUp (Stringlist function)|FindImageItemUp]]</span><span class="literal">(</span> <span class="term" title="NonObject">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">searchValue</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span>            -
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[FindImageItemUp (Stringlist function)|FindImageItemUp]]</span><span class="literal">(</span> <span class="term" title="%output">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">searchValue</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span>            -
                             <span class="squareb">[</span><span class="term" title="String">operator</span><span class="squareb">]</span><span class="literal">)</span></p>
                             <span class="squareb">[</span><span class="term" title="String">operator</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[FindUp (Stringlist function)|FindUp]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[FindUp (Stringlist function)|FindUp]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="literal">)</span></p>
Line 93: Line 93:
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sl</span><span class="literal">=</span> <span class="literal">%(Stringlist):[[New (Stringlist constructor)|New]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="String">imageName</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sl</span><span class="literal">=</span> <span class="literal">%(Stringlist):[[New (Stringlist constructor)|New]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="String">imageName</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%rc</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[Overlay (Stringlist function)|Overlay]]</span><span class="literal">(</span> <span class="term" title="Number">itemNum</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startCol</span><span class="squareb">]</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%rc</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[Overlay (Stringlist function)|Overlay]]</span><span class="literal">(</span> <span class="term" title="Number">itemNum</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startCol</span><span class="squareb">]</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">sl</span><span class="literal">:[[OverlayImageItem (Stringlist subroutine)|OverlayImageItem]]</span><span class="literal">(</span> <span class="term" title="Number">itemNum</span><span class="comma">,</span> <span class="term" title="String">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="NonObject">value</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">sl</span><span class="literal">:[[OverlayImageItem (Stringlist subroutine)|OverlayImageItem]]</span><span class="literal">(</span> <span class="term" title="Number">itemNum</span><span class="comma">,</span> <span class="term" title="String">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="%output">value</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">sl</span><span class="literal">:[[ParseLines (Stringlist subroutine)|ParseLines]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">delims</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">StripTrailingNull=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">sl</span><span class="literal">:[[ParseLines (Stringlist subroutine)|ParseLines]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">delims</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">StripTrailingNull=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%updList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Patch (Stringlist function)|Patch]]</span><span class="literal">(</span> <span class="term" title="Stringlist">patchList</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%updList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Patch (Stringlist function)|Patch]]</span><span class="literal">(</span> <span class="term" title="Stringlist">patchList</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p>
Line 102: Line 102:
                     <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">Start=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">MaxItems=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
                     <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">Start=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">MaxItems=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%count</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[Push (Stringlist function)|Push]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%count</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[Push (Stringlist function)|Push]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%rc</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexCapture (Stringlist function)|RegexCapture]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="NonObject">Status=</span> <span class="term" title="NonObject">nonObject</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%rc</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexCapture (Stringlist function)|RegexCapture]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="%output">Status=</span> <span class="term" title="%output">%output</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%itemNum</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexLocate (Stringlist function)|RegexLocate]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>            -
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%itemNum</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexLocate (Stringlist function)|RegexLocate]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>            -
                             <span class="squareb">[</span><span class="literal" title="NonObject">Status=</span> <span class="term" title="NonObject">nonObject</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">StartCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span>           -
                             <span class="squareb">[</span><span class="literal" title="%output">Status=</span> <span class="term" title="%output">%output</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">StartCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span>             -
                             <span class="squareb">[</span><span class="literal" title="Number">EndCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
                             <span class="squareb">[</span><span class="literal" title="Number">EndCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%itemNum</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexLocateUp (Stringlist function)|RegexLocateUp]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>          -
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%itemNum</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexLocateUp (Stringlist function)|RegexLocateUp]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startItem</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>          -
                               <span class="squareb">[</span><span class="literal" title="NonObject">Status=</span> <span class="term" title="NonObject">nonObject</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">StartCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span>         -
                               <span class="squareb">[</span><span class="literal" title="%output">Status=</span> <span class="term" title="%output">%output</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">StartCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span>           -
                               <span class="squareb">[</span><span class="literal" title="Number">EndCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
                               <span class="squareb">[</span><span class="literal" title="Number">EndCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outString</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[RegexReplaceCorresponding (Stringlist function)|RegexReplaceCorresponding]]</span><span class="literal">(</span> <span class="term" title="String">inString</span><span class="comma">,</span> <span class="term" title="Stringlist">replacementList</span><span class="comma">,</span>          -
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outString</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[RegexReplaceCorresponding (Stringlist function)|RegexReplaceCorresponding]]</span><span class="literal">(</span> <span class="term" title="String">inString</span><span class="comma">,</span> <span class="term" title="Stringlist">replacementList</span><span class="comma">,</span>          -
                                           <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                  -
                                           <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                  -
                                           <span class="squareb">[</span><span class="literal" title="NonObject">Status=</span> <span class="term" title="NonObject">nonObject</span><span class="squareb">]</span><span class="literal">)</span></p>
                                           <span class="squareb">[</span><span class="literal" title="%output">Status=</span> <span class="term" title="%output">%output</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexSplit (Stringlist function)|RegexSplit]]</span><span class="literal">(</span> <span class="term" title="String">inString</span><span class="comma">,</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                  -
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexSplit (Stringlist function)|RegexSplit]]</span><span class="literal">(</span> <span class="term" title="String">inString</span><span class="comma">,</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                  -
                           <span class="squareb">[</span><span class="literal" title="NonObject">Status=</span> <span class="term" title="NonObject">nonObject</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="RegexSplitOutputOptions">Add=</span> <span class="term" title="RegexSplitOutputOptions">regexSplitOutputOptions</span><span class="squareb">]</span><span class="literal">)</span></p>
                           <span class="squareb">[</span><span class="literal" title="%output">Status=</span> <span class="term" title="%output">%output</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="RegexSplitOutputOptions">Add=</span> <span class="term" title="RegexSplitOutputOptions">regexSplitOutputOptions</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%subsetList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[RegexSubset (Stringlist function)|RegexSubset]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="NonObject">Status=</span> <span class="term" title="NonObject">nonObject</span><span class="squareb">]</span><span class="comma">,</span>   -
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%subsetList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[RegexSubset (Stringlist function)|RegexSubset]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="%output">Status=</span> <span class="term" title="%output">%output</span><span class="squareb">]</span><span class="comma">,</span>     -
                             <span class="squareb">[</span><span class="literal" title="Number">StartCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">EndCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
                             <span class="squareb">[</span><span class="literal" title="Number">StartCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">EndCol=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%count</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RemoveItem (Stringlist function)|RemoveItem]]</span><span class="literal">(</span> <span class="term" title="Number">itemNum</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%count</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RemoveItem (Stringlist function)|RemoveItem]]</span><span class="literal">(</span> <span class="term" title="Number">itemNum</span><span class="literal">)</span></p>
Line 122: Line 122:
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[SortNew (Stringlist function)|SortNew]]</span><span class="literal">(</span> <span class="term" title="String">sortOrder</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">pad</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[SortNew (Stringlist function)|SortNew]]</span><span class="literal">(</span> <span class="term" title="String">sortOrder</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">pad</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Subset (Stringlist function)|Subset]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startCol</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">endCol</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">caseFlag</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Subset (Stringlist function)|Subset]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">startCol</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">endCol</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">caseFlag</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[SubsetImageItem (Stringlist function)|SubsetImageItem]]</span><span class="literal">(</span> <span class="term" title="NonObject">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">searchValue</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">operator</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[SubsetImageItem (Stringlist function)|SubsetImageItem]]</span><span class="literal">(</span> <span class="term" title="%output">imageItem</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">searchValue</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">operator</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">sl</span><span class="literal">:[[UnbindImage (Stringlist subroutine)|UnbindImage]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">sl</span><span class="literal">:[[UnbindImage (Stringlist subroutine)|UnbindImage]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Update (Stringlist function)|Update]]</span><span class="literal">(</span> <span class="term" title="Stringlist">updList</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="NonObject">%status</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%outList</span><span class="literal">=</span> <span class="term">sl</span><span class="literal">:[[Update (Stringlist function)|Update]]</span><span class="literal">(</span> <span class="term" title="Stringlist">updList</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="%output">%status</span><span class="squareb">]</span><span class="literal">)</span></p>

Revision as of 21:20, 22 January 2011

The syntax for each of the Stringlist class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Stringlist methods.

[%number=] sl:Add( string)

[%number=] sl:AddImage[( [imageName])]

[%number=] sl:AddOrdered( string)

[%number=] sl:AddOrderedUnique( string)

[%number=] sl:AddUnique( string)

[%number=] sl:AddUniqueOrdered( string)

[%rc=] sl:AppendCertificateInfo[( [certificate])]

[%rc=] sl:AppendCertificateRequest( [PrivateKey=] stringlist, - [[Country=] string], [[State=] string], - [[City=] string], - [[Organization=] string], - [[OrganizationalUnit=] string], - [[CommonName=] string])

[%rc=] sl:AppendCertificateRequestInfo( certificateRequest)

[%rc=] sl:AppendClientCertificateRequest( [PrivateKey=] stringlist, - [[Country=] string], - [[State=] string], - [[City=] string], - [[Organization=] string], - [[OrganizationalUnit=] string], - [[CommonName=] string], - [[Challenge=] string])

sl:AppendEncryptedSecurityData( stringlist, [Password=] string, - [[Identifier=] string])

[%count=] sl:AppendFieldImages[( [Image= string], [FirstOccurrence= number], - [MaxOccurrences= number], [Options= string], - [NullValue= string])]

[%count=] sl:AppendFieldValues[( [NameLength= number], [Fieldname= string], - [Options= string])]

sl:AppendGeneratedPrivateKey[( [[Length=] number], [[Exponent=] number], - [[Salt=] string])]

[%rc=] sl:AppendJournalData[( [[StartTime=] string], [[EndTime=] string], - [[Threads=] string], [[Options=] string], - [[Journal=] journal])]

[%rc=] sl:AppendOpenProcedure[( [numLines], [seqIncrement])]

[%number=] sl:AppendPrivateKeyInfo[( [stringlist], [[Password=] string])]

[%rc=] sl:AppendProcedureList( file, [pname], [accnt], [date])

[%rc=] sl:AppendSignedCertificate( [PrivateKey=] stringlist, - [Request=] stringlist, - [[Signer=] stringlist], - [[StartDate=] string], - [[EndDate=] string], - [[SerialNumber=] number])

[%rc=] sl:AppendSignedClientCertificate( [PrivateKey=] stringlist, - [Request=] stringlist, - [Signer=] stringlist, - [[StartDate=] string], - [[EndDate=] string], - [[SerialNumber=] number])

[%rc=] sl:AppendSirfactCommandOutput( command)

[%rc=] sl:AppendSirfactData( dataList)

[%count=] sl:AppendTrace[( [parms])]

%string= sl:BinaryProcedureDecode

sl:BinaryProcedureEncode( string, [base64Flag])

sl:BindImage( imageName)

[%rc=] sl:ChangeItemLength( itemNum, length)

%rc= sl:CheckCertificate( [PrivateKey=] stringlist, [[Password=] string])

%rc= sl:CheckCertificateRequest( [PrivateKey=] stringlist, - [[Password=] string])

[%outList=] sl:Compare( inList, [syncCount], [pad])

%outList= sl:Copy

sl:CopyImageBinding( boundList)

[%count=] sl:CopyItems( inList, [startItem], [numItems])

%count= sl:Count

%string= sl:CreateLines[( [delim], [AddTrailingDelimiter= boolean])]

%outList= sl:DeepCopy

[%string=] sl:Dequeue

sl:Empty

[%count=] sl:Enqueue( string)

%number= sl:Find( string, [startItem])

%number= sl:FindImageItem( imageItem, [searchValue], [startItem], [operator])

%number= sl:FindImageItemUp( imageItem, [searchValue], [startItem], - [operator])

%number= sl:FindUp( string, [startItem])

%string= sl:FirstItem

sl:GetImage( itemNum, [imageName])

[%count=] sl:Insert( itemNum, string)

[%count=] sl:InsertImage( itemNum, [imageName])

%string= sl:Item( itemNum)

%outList= sl:ItemDifferenceList( sl1, itemNum, [separator])

%length= sl:ItemLength( itemNum)

%string= sl:LastItem

%newList= %(Stringlist):List( itemList)

%count= sl:ListToItem( strList2, itemNum, [separator])

%itemNum= sl:Locate( string, [start], [startCol], [endCol], [caseFlag])

%itemNum= sl:LocateUp( string, [start], [startCol], [endCol], [caseFlag])

%max= %(Stringlist):MaxItemLength

sl:MoveFromId( listId)

sl:MoveToId( listId)

%sl= %(Stringlist):New[( [imageName])]

[%rc=] sl:Overlay( itemNum, [startCol], string)

sl:OverlayImageItem( itemNum, imageItem, [value])

sl:ParseLines( string, [delims], [StripTrailingNull= boolean])

%updList= sl:Patch( patchList, [Options= string])

%updList= sl:PatchLines( baseList, [Options= string])

%updString= sl:PatchString( baseString, [Options= string])

[%string=] sl:Pop

[%count=] sl:Print[( [[NumWidth=] number], [[LenWidth=] number], - [[Start=] number], [[MaxItems=] number])]

[%count=] sl:Push( string)

[%rc=] sl:RegexCapture( string, regex, [Options= string], [Status= %output])

[%itemNum=] sl:RegexLocate( regex, [startItem], [Options= string], - [Status= %output], [StartCol= number], - [EndCol= number])

[%itemNum=] sl:RegexLocateUp( regex, [startItem], [Options= string], - [Status= %output], [StartCol= number], - [EndCol= number])

%outString= sl:RegexReplaceCorresponding( inString, replacementList, - [Options= string], - [Status= %output])

[%number=] sl:RegexSplit( inString, regex, [Options= string], - [Status= %output], [Add= regexSplitOutputOptions])

%subsetList= sl:RegexSubset( regex, [Options= string], [Status= %output], - [StartCol= number], [EndCol= number])

[%count=] sl:RemoveItem( itemNum)

[%rc=] sl:Replace( number, string)

[%rc=] sl:ReplaceImage( itemNum, [imageName])

sl:Sort( sortOrder, [pad])

%outList= sl:SortNew( sortOrder, [pad])

%outList= sl:Subset( string, [startCol], [endCol], [caseFlag])

%outList= sl:SubsetImageItem( imageItem, [searchValue], [operator])

sl:UnbindImage

%outList= sl:Update( updList, [%status])