String methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
(Automatically generated page update)
Line 2: Line 2:
     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=String}}
{{Template:Syntax list header|class=String}}
<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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[AsciiToEbcdic (String function)|AsciiToEbcdic]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">CharacterEncode=</span> <span class="term" title="Boolean">boolean</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:1px solid;"><span class="term">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[AsciiToEbcdic (String function)|AsciiToEbcdic]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">CharacterEncode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">string</span><span class="literal">:[[Base64ToString (String function)|Base64ToString]]</span></p>
 
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">string</span><span class="literal">:[[Base64ToString (String function)|Base64ToString]]</span>
 
Throws [[InvalidBase64Data class|InvalidBase64Data]]</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">string</span><span class="literal">:[[BinaryToFloat (String function)|BinaryToFloat]]</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">string</span><span class="literal">:[[BinaryToFloat (String function)|BinaryToFloat]]</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">string</span><span class="literal">:[[BinaryToInteger (String function)|BinaryToInteger]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Signed=</span> <span class="term" title="Boolean">boolean</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">%number</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BinaryToInteger (String function)|BinaryToInteger]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Signed=</span> <span class="term" title="Boolean">boolean</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitAndString (String function)|BitAndString]]</span><span class="literal">(</span> <span class="term" title="String">andBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitAndString (String function)|BitAndString]]</span><span class="literal">(</span> <span class="term" title="String">andBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitClearString (String function)|BitClearString]]</span><span class="literal">(</span> <span class="term" title="Number">bitNumber</span><span class="literal">)</span>
Throws [[InvalidBitNumber class|InvalidBitNumber]]</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">%count</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitCountString (String function)|BitCountString]]</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitFlipString (String function)|BitFlipString]]</span><span class="literal">(</span> <span class="term" title="Number">bitNumber</span><span class="literal">)</span>
Throws [[InvalidBitNumber class|InvalidBitNumber]]</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitOffString (String function)|BitOffString]]</span><span class="literal">(</span> <span class="term" title="String">offBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitOffString (String function)|BitOffString]]</span><span class="literal">(</span> <span class="term" title="String">offBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitOnString (String function)|BitOnString]]</span><span class="literal">(</span> <span class="term" title="String">onBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitOnString (String function)|BitOnString]]</span><span class="literal">(</span> <span class="term" title="String">onBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitOrString (String function)|BitOrString]]</span><span class="literal">(</span> <span class="term" title="String">orBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitOrString (String function)|BitOrString]]</span><span class="literal">(</span> <span class="term" title="String">orBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitSetString (String function)|BitSetString]]</span><span class="literal">(</span> <span class="term" title="Number">bitNumber</span><span class="literal">)</span>
Throws [[InvalidBitNumber class|InvalidBitNumber]]</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">%value</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitValueString (String function)|BitValueString]]</span><span class="literal">(</span> <span class="term" title="Number">bitNumber</span><span class="literal">)</span>
Throws [[InvalidBitNumber class|InvalidBitNumber]]</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitXorString (String function)|BitXorString]]</span><span class="literal">(</span> <span class="term" title="String">xorBits</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">%result</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[BitXorString (String function)|BitXorString]]</span><span class="literal">(</span> <span class="term" title="String">xorBits</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Center (String function)|Center]]</span><span class="literal">(</span> <span class="term" title="Number">length</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="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">OffsetLeft=</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Center (String function)|Center]]</span><span class="literal">(</span> <span class="term" title="Number">length</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="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">OffsetLeft=</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Centre (String function)|Centre]]</span><span class="literal">(</span> <span class="term" title="Number">length</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="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">OffsetLeft=</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Centre (String function)|Centre]]</span><span class="literal">(</span> <span class="term" title="Number">length</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="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">OffsetLeft=</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Char (String function)|Char]]</span><span class="literal">(</span> <span class="term" title="Number">position</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">string</span><span class="literal">:[[Char (String function)|Char]]</span><span class="literal">(</span> <span class="term" title="Number">position</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[CharacterToUnicode (String function)|CharacterToUnicode]]</span><span class="literal">(</span> <span class="term" title="CharacterToUnicodeMap">characterToUnicodeMap</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[CharacterToUnicode (String function)|CharacterToUnicode]]</span><span class="literal">(</span> <span class="term" title="CharacterToUnicodeMap">characterToUnicodeMap</span><span class="literal">)</span>
 
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">string</span><span class="literal">:[[Deflate (String function)|Deflate]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">FixedCode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">LazyMatch=</span> <span class="term" title="Boolean">boolean</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Deflate (String function)|Deflate]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">FixedCode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">LazyMatch=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>      -
                               <span class="squareb">[</span><span class="literal" title="Number">MaxChain=</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="literal" title="Number">MaxChain=</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="term">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[DerToXmlDoc (String function)|DerToXmlDoc]]</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">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[DerToXmlDoc (String function)|DerToXmlDoc]]</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">string</span><span class="literal">:[[EbcdicToAscii (String function)|EbcdicToAscii]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">CharacterDecode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
 
Throws [[InvalidBerData class|InvalidBerData]]</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">string</span><span class="literal">:[[EbcdicToAscii (String function)|EbcdicToAscii]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">CharacterDecode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
 
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[EbcdicToUnicode (String function)|EbcdicToUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">CharacterDecode=</span> <span class="term" title="Boolean">boolean</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[EbcdicToUnicode (String function)|EbcdicToUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">CharacterDecode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>                -
                                     <span class="squareb">[</span><span class="literal" title="Unicode">Untranslatable=</span> <span class="term" title="Unicode">unicode</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
                                     <span class="squareb">[</span><span class="literal" title="Unicode">Untranslatable=</span> <span class="term" title="Unicode">unicode</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[FormUrlDecodeUnicode (String function)|FormUrlDecodeUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Gunzip (String function)|Gunzip]]</span></p>
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">string</span><span class="literal">:[[GunzipDatetimeNS (String function)|GunzipDatetimeNS]]</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[FormUrlDecodeUnicode (String function)|FormUrlDecodeUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">string</span><span class="literal">:[[GunzipFilename (String function)|GunzipFilename]]</span></p>
 
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">string</span><span class="literal">:[[Gunzip (String function)|Gunzip]]</span>
 
Throws [[InvalidGZipData class|InvalidGZipData]]</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">string</span><span class="literal">:[[GunzipDatetimeNS (String function)|GunzipDatetimeNS]]</span>
 
Throws [[InvalidGZipData class|InvalidGZipData]]</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">string</span><span class="literal">:[[GunzipFilename (String function)|GunzipFilename]]</span>
 
Throws [[InvalidGZipData class|InvalidGZipData]]</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">string</span><span class="literal">:[[Gzip (String function)|Gzip]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">FixedCode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">LazyMatch=</span> <span class="term" title="Boolean">boolean</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Gzip (String function)|Gzip]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">FixedCode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">LazyMatch=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>        -
                           <span class="squareb">[</span><span class="literal" title="Number">MaxChain=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Filename=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>            -
                           <span class="squareb">[</span><span class="literal" title="Number">MaxChain=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Filename=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>            -
                           <span class="squareb">[</span><span class="literal" title="Number">LastModified=</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="literal" title="Number">LastModified=</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="term">%number</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[HexToInteger (String function)|HexToInteger]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Signed=</span> <span class="term" title="Boolean">boolean</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">%number</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[HexToInteger (String function)|HexToInteger]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Signed=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">string</span><span class="literal">:[[HexToString (String function)|HexToString]]</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">string</span><span class="literal">:[[Inflate (String function)|Inflate]]</span></p>
Throws [[InvalidHexData class|InvalidHexData]]</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">string</span><span class="literal">:[[HexToString (String function)|HexToString]]</span>
 
Throws [[InvalidHexData class|InvalidHexData]]</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">string</span><span class="literal">:[[Inflate (String function)|Inflate]]</span>
 
Throws [[InvalidDeflateData class|InvalidDeflateData]]</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">string</span><span class="literal">:[[Insert (String function)|Insert]]</span><span class="literal">(</span> <span class="term" title="String">insertedString</span><span class="comma">,</span> <span class="term" title="Number">position</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">string</span><span class="literal">:[[Insert (String function)|Insert]]</span><span class="literal">(</span> <span class="term" title="String">insertedString</span><span class="comma">,</span> <span class="term" title="Number">position</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">%boolean</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[IsOneOf (String function)|IsOneOf]]</span><span class="literal">(</span> <span class="term" title="String">list</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">%boolean</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[IsOneOf (String function)|IsOneOf]]</span><span class="literal">(</span> <span class="term" title="String">list</span><span class="literal">)</span></p>
Line 45: Line 84:
<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">string</span><span class="literal">:[[RC4decrypt (String function)|RC4decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</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">string</span><span class="literal">:[[RC4decrypt (String function)|RC4decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</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">string</span><span class="literal">:[[RC4encrypt (String function)|RC4encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</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">string</span><span class="literal">:[[RC4encrypt (String function)|RC4encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</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">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[RSAPrivateKeyToXmlDoc (String function)|RSAPrivateKeyToXmlDoc]]</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">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[RSAPrivateKeyToXmlDoc (String function)|RSAPrivateKeyToXmlDoc]]</span>
 
Throws [[InvalidBerData class|InvalidBerData]]</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">string</span><span class="literal">:[[RegexMatch (String function)|RegexMatch]]</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>                        -
<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">string</span><span class="literal">:[[RegexMatch (String function)|RegexMatch]]</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="Stringlist">CaptureList=</span> <span class="term" title="Stringlist">stringlist</span><span class="squareb">]</span><span class="literal">)</span></p>
                             <span class="squareb">[</span><span class="literal" title="Stringlist">CaptureList=</span> <span class="term" title="Stringlist">stringlist</span><span class="squareb">]</span><span class="literal">)</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">string</span><span class="literal">:[[RegexReplace (String function)|RegexReplace]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="term" title="String">replacement</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>
 
Throws [[InvalidRegex class|InvalidRegex]]</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">string</span><span class="literal">:[[RegexReplace (String function)|RegexReplace]]</span><span class="literal">(</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="term" title="String">replacement</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>
 
Throws [[InvalidRegex class|InvalidRegex]]</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="term">string</span><span class="literal">:[[RegexSplit (String function)|RegexSplit]]</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>                            -
<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="term">string</span><span class="literal">:[[RegexSplit (String function)|RegexSplit]]</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="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="RegexSplitOutputOptions">Add=</span> <span class="term" title="RegexSplitOutputOptions">regexSplitOutputOptions</span><span class="squareb">]</span><span class="literal">)</span>
 
Throws [[InvalidRegex class|InvalidRegex]]</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">string</span><span class="literal">:[[Remove (String function)|Remove]]</span><span class="literal">(</span> <span class="term" title="String">substring</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">Count=</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">string</span><span class="literal">:[[Remove (String function)|Remove]]</span><span class="literal">(</span> <span class="term" title="String">substring</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">Count=</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">string</span><span class="literal">:[[Replace (String function)|Replace]]</span><span class="literal">(</span> <span class="term" title="String">substring</span><span class="comma">,</span> <span class="term" title="String">replacement</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">Count=</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">string</span><span class="literal">:[[Replace (String function)|Replace]]</span><span class="literal">(</span> <span class="term" title="String">substring</span><span class="comma">,</span> <span class="term" title="String">replacement</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">Count=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
Line 58: Line 105:
<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">%boolean</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StartsWith (String function)|StartsWith]]</span><span class="literal">(</span> <span class="term" title="String">abbreviation</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">%boolean</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StartsWith (String function)|StartsWith]]</span><span class="literal">(</span> <span class="term" title="String">abbreviation</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">string</span><span class="literal">:[[StringToBase64 (String function)|StringToBase64]]</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">string</span><span class="literal">:[[StringToBase64 (String function)|StringToBase64]]</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">%days</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringToDays (String function)|StringToDays]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</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">%days</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringToDays (String function)|StringToDays]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span>
 
Throws [[InvalidDateString class|InvalidDateString]]</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">string</span><span class="literal">:[[StringToHex (String function)|StringToHex]]</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">string</span><span class="literal">:[[StringToHex (String function)|StringToHex]]</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">%milliseconds</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringToMilliseconds (String function)|StringToMilliseconds]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</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">%milliseconds</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringToMilliseconds (String function)|StringToMilliseconds]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</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">%seconds</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringToSeconds (String function)|StringToSeconds]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
 
Throws [[InvalidDateString class|InvalidDateString]]</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">%seconds</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringToSeconds (String function)|StringToSeconds]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span>
 
Throws [[InvalidDateString class|InvalidDateString]]</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">%stringTokenizer</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringTokenizer (String function)|StringTokenizer]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">TokenChars=</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="term">%stringTokenizer</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[StringTokenizer (String function)|StringTokenizer]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">TokenChars=</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">Spaces=</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">Spaces=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                  -
Line 68: Line 121:
<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">string</span><span class="literal">:[[Substring (String function)|Substring]]</span><span class="literal">(</span> <span class="term" title="Number">position</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">length</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Substring (String function)|Substring]]</span><span class="literal">(</span> <span class="term" title="Number">position</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">length</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[TimeStringConvert (String function)|TimeStringConvert]]</span><span class="literal">(</span> <span class="term" title="String">inputFormat</span><span class="comma">,</span> <span class="term" title="String">outputFormat</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">string</span><span class="literal">:[[TimeStringConvert (String function)|TimeStringConvert]]</span><span class="literal">(</span> <span class="term" title="String">inputFormat</span><span class="comma">,</span> <span class="term" title="String">outputFormat</span><span class="comma">,</span>              -
                                       <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p>
                                       <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CentSpan=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span>
 
Throws [[InvalidDateString class|InvalidDateString]]</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">string</span><span class="literal">:[[ToLower (String function)|ToLower]]</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">string</span><span class="literal">:[[ToLower (String function)|ToLower]]</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">string</span><span class="literal">:[[ToString (String function)|ToString]]</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">string</span><span class="literal">:[[ToString (String function)|ToString]]</span></p>
Line 78: Line 133:
<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">string</span><span class="literal">:[[Unspace (String function)|Unspace]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">Leading=</span> <span class="term" title="Boolean">boolean</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Unspace (String function)|Unspace]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">Leading=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>            -
                               <span class="squareb">[</span><span class="literal" title="Boolean">Trailing=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">Compress=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
                               <span class="squareb">[</span><span class="literal" title="Boolean">Trailing=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">Compress=</span> <span class="term" title="Boolean">boolean</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[UrlDecodeUnicode (String function)|UrlDecodeUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[UrlDecodeUnicode (String function)|UrlDecodeUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
 
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Utf16ToUnicode (String function)|Utf16ToUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Utf16ToUnicode (String function)|Utf16ToUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>            -
                                   <span class="squareb">[</span><span class="literal" title="Utf16BOM">Bom=</span> <span class="term" title="Utf16BOM">utf16BOM</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
                                   <span class="squareb">[</span><span class="literal" title="Utf16BOM">Bom=</span> <span class="term" title="Utf16BOM">utf16BOM</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Utf8ToUnicode (String function)|Utf8ToUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
 
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">%unicode</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Utf8ToUnicode (String function)|Utf8ToUnicode]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">AllowUntranslatable=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span>
 
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">%selectedWord</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Word (String function)|Word]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</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">%selectedWord</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Word (String function)|Word]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</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">%number</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[WordCount (String function)|WordCount]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</span> <span class="term" title="String">string</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">%number</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[WordCount (String function)|WordCount]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
Line 88: Line 149:
<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">string</span><span class="literal">:[[Words (String function)|Words]]</span><span class="literal">(</span> <span class="term" title="Number">start</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">count</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Words (String function)|Words]]</span><span class="literal">(</span> <span class="term" title="Number">start</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">count</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Spaces=</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[X (String function)|X]]</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">string</span><span class="literal">:[[X (String function)|X]]</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">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[X509CertificateToXmlDoc (String function)|X509CertificateToXmlDoc]]</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">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[X509CertificateToXmlDoc (String function)|X509CertificateToXmlDoc]]</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">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[X509CrlToXmlDoc (String function)|X509CrlToXmlDoc]]</span></p>
 
Throws [[InvalidBerData class|InvalidBerData]]</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">%doc</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[X509CrlToXmlDoc (String function)|X509CrlToXmlDoc]]</span>
 
Throws [[InvalidBerData class|InvalidBerData]]</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">string</span><span class="literal">:[[Zip (String function)|Zip]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">FixedCode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">LazyMatch=</span> <span class="term" title="Boolean">boolean</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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Zip (String function)|Zip]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">FixedCode=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Boolean">LazyMatch=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span>          -
                           <span class="squareb">[</span><span class="literal" title="Number">MaxChain=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Filename=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>              -
                           <span class="squareb">[</span><span class="literal" title="Number">MaxChain=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Filename=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>              -
                           <span class="squareb">[</span><span class="literal" title="Number">LastModified=</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="literal" title="Number">LastModified=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>

Revision as of 20:02, 21 March 2013

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

%outString = string:AsciiToEbcdic[( [CharacterEncode= boolean])] Throws CharacterTranslationException

%outString = string:Base64ToString Throws InvalidBase64Data

%number = string:BinaryToFloat

%number = string:BinaryToInteger[( [Signed= boolean])]

%result = string:BitAndString( andBits, [Pad= c])

%result = string:BitClearString( bitNumber) Throws InvalidBitNumber

%count = string:BitCountString

%result = string:BitFlipString( bitNumber) Throws InvalidBitNumber

%result = string:BitOffString( offBits, [Pad= c])

%result = string:BitOnString( onBits, [Pad= c])

%result = string:BitOrString( orBits, [Pad= c])

%result = string:BitSetString( bitNumber) Throws InvalidBitNumber

%value = string:BitValueString( bitNumber) Throws InvalidBitNumber

%result = string:BitXorString( xorBits, [Pad= c])

%outString = string:Center( length, [Pad= c], [OffsetLeft= boolean])

%outString = string:Centre( length, [Pad= c], [OffsetLeft= boolean])

%outString = string:Char( position)

%unicode = string:CharacterToUnicode( characterToUnicodeMap) Throws CharacterTranslationException

%outString = string:Deflate[( [FixedCode= boolean], [LazyMatch= boolean], - [MaxChain= number])]

%doc = string:DerToXmlDoc Throws InvalidBerData

%outString = string:EbcdicToAscii[( [CharacterDecode= boolean])] Throws CharacterTranslationException

%unicode = string:EbcdicToUnicode[( [CharacterDecode= boolean], - [Untranslatable= unicode])] Throws CharacterTranslationException

%unicode = string:FormUrlDecodeUnicode[( [AllowUntranslatable= boolean])] Throws CharacterTranslationException

%outString = string:Gunzip Throws InvalidGZipData

%number = string:GunzipDatetimeNS Throws InvalidGZipData

%outString = string:GunzipFilename Throws InvalidGZipData

%outString = string:Gzip[( [FixedCode= boolean], [LazyMatch= boolean], - [MaxChain= number], [Filename= string], - [LastModified= number])]

%number = string:HexToInteger[( [Signed= boolean])] Throws InvalidHexData

%outString = string:HexToString Throws InvalidHexData

%outString = string:Inflate Throws InvalidDeflateData

%outString = string:Insert( insertedString, position)

%boolean = string:IsOneOf( list)

%boolean = string:IsStartOf( longerString, MinLength= number)

%outString = string:Left( length, [Pad= c])

%length = string:Length

%outString = string:MD5digest

%outString = string:MarksStoreCodeDecrement

%outString = string:MarksStoreCodeIncrement

%number = string:MarksStoreCodeToNumber

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

%position = string:PositionIn( haystack, [Start= number])

%position = string:PositionOf( needle, [Start= number])

%outString = string:RC4decrypt( key)

%outString = string:RC4encrypt( key)

%doc = string:RSAPrivateKeyToXmlDoc Throws InvalidBerData

%number = string:RegexMatch( regex, [Options= string], - [CaptureList= stringlist]) Throws InvalidRegex

%outString = string:RegexReplace( regex, replacement, [Options= string]) Throws InvalidRegex

%sl = string:RegexSplit( regex, [Options= string], - [Add= regexSplitOutputOptions]) Throws InvalidRegex

%outString = string:Remove( substring, [Count= number])

%outString = string:Replace( substring, replacement, [Count= number])

%outString = string:Reverse

%outString = string:Right( length, [Pad= c])

%outString = string:SHAdigest

%boolean = string:StartsWith( abbreviation)

%outString = string:StringToBase64

%days = string:StringToDays( format, [[CentSpan=] number]) Throws InvalidDateString

%outString = string:StringToHex

%milliseconds = string:StringToMilliseconds( format, [[CentSpan=] number]) Throws InvalidDateString

%seconds = string:StringToSeconds( format, [[CentSpan=] number]) Throws InvalidDateString

%stringTokenizer = string:StringTokenizer[( [TokenChars= string], - [Spaces= string], - [Quotes= string], - [Separators= string])]

%outString = string:Substring( position, [length], [Pad= c])

%outString = string:TimeStringConvert( inputFormat, outputFormat, - [[CentSpan=] number]) Throws InvalidDateString

%outString = string:ToLower

%outString = string:ToString

%outString = string:ToUpper

%outString = string:Translate( characterMap)

%outString = string:TrimLeft( amount)

%outString = string:TrimRight( amount)

%unicode = string:U

%outString = string:Unspace[( [Spaces= string], [Leading= boolean], - [Trailing= boolean], [Compress= boolean])]

%unicode = string:UrlDecodeUnicode[( [AllowUntranslatable= boolean])] Throws CharacterTranslationException

%unicode = string:Utf16ToUnicode[( [AllowUntranslatable= boolean], - [Bom= utf16BOM])] Throws CharacterTranslationException

%unicode = string:Utf8ToUnicode[( [AllowUntranslatable= boolean])] Throws CharacterTranslationException

%selectedWord = string:Word( number, [Spaces= string])

%number = string:WordCount[( [Spaces= string])]

%number = string:WordNumberIn( haystack, [Spaces= string])

%number = string:WordNumberOf( needle, [Spaces= string])

%outString = string:Words( start, [count], [Spaces= string])

%outString = string:X

%doc = string:X509CertificateToXmlDoc Throws InvalidBerData

%doc = string:X509CrlToXmlDoc Throws InvalidBerData

%outString = string:Zip[( [FixedCode= boolean], [LazyMatch= boolean], - [MaxChain= number], [Filename= string], - [LastModified= number])]