ParseLines (String function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:


<var>ParseLines</var> creates a <var>Stringlist</var> consisting of substrings bewteen an identified separator string.
<var>ParseLines</var> creates a <var>Stringlist</var> consisting of substrings bewteen an identified separator string.
==Syntax==
==Syntax==
{{Template:String:ParseLines syntax}}
{{Template:String:ParseLines syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 15: Line 17:
<td><var>Boolean</var> value</td></tr>
<td><var>Boolean</var> value</td></tr>
</table>
</table>
==Usage notes==
==Usage notes==
==Examples==
==See also==
<ul>
<ul>
<li>The <var>[[CreateLines (Stringlist function)|CreateLines]]</var> function performs the inverse operation; that is, it creates a string by concatenating the items in a <var>Stringlist</var> with separator strings between the items.
<li>The <var>[[CreateLines (Stringlist function)|CreateLines]]</var> function performs the inverse operation; that is, it creates a string by concatenating the items in a <var>Stringlist</var> with separator strings between the items.
</ul>
</ul>
==Examples==
==See also==
{{Template:String:ParseLines footer}}
{{Template:String:ParseLines footer}}

Revision as of 16:24, 15 May 2012

Parse delimited string, creating new Stringlist (String class)

This page is under construction.

ParseLines creates a Stringlist consisting of substrings bewteen an identified separator string.

Syntax

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

Syntax terms

%stringlistStringlist object
string string
delims string
StripTrailingNull Boolean value

Usage notes

  • The CreateLines function performs the inverse operation; that is, it creates a string by concatenating the items in a Stringlist with separator strings between the items.

Examples

See also