CharacterMap methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- This page was automatically generated and will be automatically
<!-- This page was automatically generated and will be automatically
     replaced, so any manual edits will be lost. You've been warned. -->
     replaced, so any manual edits will be lost. You've been warned. -->
{{Template:Syntax_list_header|class=CharacterMap}}
{{Template:Syntax list header|class=CharacterMap}}
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%object</span><span class="literal">=</span> <span class="term">characterMap</span><span class="literal">:[[Copy (CharacterMap function)|Copy]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%outCharacterMap</span><span class="literal"> =</span> <span class="term">characterMap</span><span class="literal">:[[Copy (CharacterMap function)|Copy]]</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">%object</span><span class="literal">=</span> <span class="term">characterMap</span><span class="literal">:[[DeepCopy (CharacterMap function)|DeepCopy]]</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">%outCharacterMap</span><span class="literal"> =</span> <span class="term">characterMap</span><span class="literal">:[[DeepCopy (CharacterMap function)|DeepCopy]]</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">%characterMap</span><span class="literal">=</span> <span class="literal">%(CharacterMap):[[New (CharacterMap constructor)|New]]</span><span class="literal">(</span> <span class="literal">In=</span> <span class="term">in</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">Out=</span> <span class="term">out</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">Pad=</span> <span class="term">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">%characterMap</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(CharacterMap):</span><span class="squareb">]</span><span class="literal">[[New (CharacterMap constructor)|New]]</span><span class="literal">(</span> <span class="literal" title="String">In=</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Out=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="C">Pad=</span> <span class="term" title="C">c</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">characterMap</span><span class="literal">:[[Update (CharacterMap subroutine)|Update]]</span><span class="literal">(</span> <span class="literal">In=</span> <span class="term">in</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">Out=</span> <span class="term">out</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">Pad=</span> <span class="term">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">characterMap</span><span class="literal">:[[Update (CharacterMap subroutine)|Update]]</span><span class="literal">(</span> <span class="literal" title="String">In=</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Out=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="C">Pad=</span> <span class="term" title="C">c</span><span class="squareb">]</span><span class="literal">)</span></p>

Latest revision as of 20:49, 30 November 2011

The syntax for each of the CharacterMap 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 CharacterMap methods.

%outCharacterMap = characterMap:Copy

%outCharacterMap = characterMap:DeepCopy

%characterMap = [%(CharacterMap):]New( In= string, [Out= string], [Pad= c])

characterMap:Update( In= string, [Out= string], [Pad= c])