String methods syntax: Difference between revisions
(Automatically generated page update) |
(Automatically generated page update) |
||
(4 intermediate revisions by 2 users not shown) | |||
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 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">:[[AES128CBCdecrypt (String function)|AES128CBCdecrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | ||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[AES128CBCencrypt (String function)|AES128CBCencrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[AES128decrypt (String function)|AES128decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[AES128encrypt (String function)|AES128encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[AES192CBCdecrypt (String function)|AES192CBCdecrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[AES192CBCencrypt (String function)|AES192CBCencrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[AES192decrypt (String function)|AES192decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[AES192encrypt (String function)|AES192encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[AES256CBCdecrypt (String function)|AES256CBCdecrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[AES256CBCencrypt (String function)|AES256CBCencrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[AES256decrypt (String function)|AES256decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[AES256encrypt (String function)|AES256encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[After (String function)|After]]</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">Start=</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">:[[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> | |||
Throws [[CharacterTranslationException class|CharacterTranslationException]]</p> | Throws [[CharacterTranslationException class|CharacterTranslationException]]</p> | ||
Line 8: | Line 45: | ||
Throws [[InvalidBase64Data class|InvalidBase64Data]]</p> | 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">%outString</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Before (String function)|Before]]</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">Start=</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">%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> | ||
Line 30: | Line 68: | ||
<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">%certRequest</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[CertificateRequest (String function)|CertificateRequest]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">Country=</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">State=</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">City=</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">Organization=</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">OrganizationalUnit=</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">CommonName=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="literal" title="DigestAlgorithm">SignatureAlgorithm=</span> <span class="term" title="DigestAlgorithm">digestAlgorithm</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span> | |||
Throws [[PKCSError class|PKCSError]]</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 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> | 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">%certRequest</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[ClientCertificateRequest (String function)|ClientCertificateRequest]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">Country=</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">State=</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">City=</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">Organization=</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">OrganizationalUnit=</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">CommonName=</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">Challenge=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="literal" title="DigestAlgorithm">SignatureAlgorithm=</span> <span class="term" title="DigestAlgorithm">digestAlgorithm</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span> | |||
Throws [[PKCSError class|PKCSError]]</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">:[[DEA128CBCdecrypt (String function)|DEA128CBCdecrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[DEA128CBCencrypt (String function)|DEA128CBCencrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[DEA128decrypt (String function)|DEA128decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[DEA128encrypt (String function)|DEA128encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[DEA192CBCdecrypt (String function)|DEA192CBCdecrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[DEA192CBCencrypt (String function)|DEA192CBCencrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[DEA192decrypt (String function)|DEA192decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[DEA192encrypt (String function)|DEA192encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[DEA64CBCdecrypt (String function)|DEA64CBCdecrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[DEA64CBCencrypt (String function)|DEA64CBCencrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="comma">,</span> <span class="term" title="String">initVector</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]], [[InvalidCryptoInitVector class|InvalidCryptoInitVector]]</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">:[[DEA64decrypt (String function)|DEA64decrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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">:[[DEA64encrypt (String function)|DEA64encrypt]]</span><span class="literal">(</span> <span class="term" title="String">key</span><span class="literal">)</span> | |||
Throws [[UnsupportedCrypto class|UnsupportedCrypto]], [[InvalidCryptoKey class|InvalidCryptoKey]], [[InvalidCryptoData class|InvalidCryptoData]]</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> | ||
Line 46: | Line 138: | ||
Throws [[CharacterTranslationException class|CharacterTranslationException]]</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">%boolean</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[EndsWith (String function)|EndsWith]]</span><span class="literal">(</span> <span class="term" title="String">endString</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">:[[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">%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> | ||
Line 75: | Line 168: | ||
<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">:[[Left (String function)|Left]]</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="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">:[[Left (String function)|Left]]</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="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">%length</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Length (String function)|Length]]</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">%length</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[Length (String function)|Length]]</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">:[[MarksStoreCodeDecrement (String function)|MarksStoreCodeDecrement]]</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">:[[MarksStoreCodeDecrement (String function)|MarksStoreCodeDecrement]]</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">:[[MarksStoreCodeIncrement (String function)|MarksStoreCodeIncrement]]</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">:[[MarksStoreCodeIncrement (String function)|MarksStoreCodeIncrement]]</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">:[[MarksStoreCodeToNumber (String function)|MarksStoreCodeToNumber]]</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">:[[MarksStoreCodeToNumber (String function)|MarksStoreCodeToNumber]]</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">:[[MD5digest (String function)|MD5digest]]</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="term">string</span><span class="literal">:[[ParseLines (String function)|ParseLines]]</span><span class="squareb">[</span><span class="literal">(</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><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="term">string</span><span class="literal">:[[ParseLines (String function)|ParseLines]]</span><span class="squareb">[</span><span class="literal">(</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><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">%position</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[PositionIn (String function)|PositionIn]]</span><span class="literal">(</span> <span class="term" title="String">haystack</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">Start=</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">%position</span><span class="literal"> =</span> <span class="term">string</span><span class="literal">:[[PositionIn (String function)|PositionIn]]</span><span class="literal">(</span> <span class="term" title="String">haystack</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Number">Start=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
Line 84: | Line 177: | ||
<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">%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> | <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> | ||
Line 102: | Line 192: | ||
<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">:[[Reverse (String function)|Reverse]]</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">:[[Reverse (String function)|Reverse]]</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">:[[Right (String function)|Right]]</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="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">:[[Right (String function)|Right]]</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="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> | |||
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">:[[SHAdigest (String function)|SHAdigest]]</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">:[[SHAdigest (String function)|SHAdigest]]</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">:[[SHA224digest (String function)|SHA224digest]]</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">:[[SHA256digest (String function)|SHA256digest]]</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">:[[SHA384digest (String function)|SHA384digest]]</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">:[[SHA512digest (String function)|SHA512digest]]</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">%signedCert</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">string</span><span class="literal">:[[SignedCertificate (String function)|SignedCertificate]]</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">PrivateKey=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">Signer=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">StartDate=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">EndDate=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">SerialNumber=</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="literal" title="DigestAlgorithm">SignatureAlgorithm=</span> <span class="term" title="DigestAlgorithm">digestAlgorithm</span><span class="squareb">]</span><span class="literal">)</span> | |||
Throws [[PKCSError class|PKCSError]]</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">%signedCert</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">string</span><span class="literal">:[[SignedClientCertificate (String function)|SignedClientCertificate]]</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">PrivateKey=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">Signer=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">StartDate=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">EndDate=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | |||
<span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">SerialNumber=</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="literal" title="DigestAlgorithm">SignatureAlgorithm=</span> <span class="term" title="DigestAlgorithm">digestAlgorithm</span><span class="squareb">]</span><span class="literal">)</span> | |||
Throws [[PKCSError class|PKCSError]]</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">%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> | ||
Line 109: | Line 222: | ||
Throws [[InvalidDateString class|InvalidDateString]]</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">%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">%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">Quotes=</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">Separators=</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">%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">%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> | ||
Line 115: | Line 232: | ||
Throws [[InvalidDateString class|InvalidDateString]]</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">%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> - |
Latest revision as of 03:13, 21 February 2020
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:AES128CBCdecrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:AES128CBCencrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:AES128decrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:AES128encrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:AES192CBCdecrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:AES192CBCencrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:AES192decrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:AES192encrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:AES256CBCdecrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:AES256CBCencrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:AES256decrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:AES256encrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:After( substring, [Start= number])
%outString = string:AsciiToEbcdic[( [CharacterEncode= boolean])] Throws CharacterTranslationException
%outString = string:Base64ToString Throws InvalidBase64Data
%outString = string:Before( substring, [Start= number])
%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])
%certRequest = string:CertificateRequest[( [Country= string], - [State= string], [City= string], - [Organization= string], - [OrganizationalUnit= string], - [CommonName= string], - [SignatureAlgorithm= digestAlgorithm])] Throws PKCSError
%outString = string:Char( position)
%unicode = string:CharacterToUnicode( characterToUnicodeMap) Throws CharacterTranslationException
%certRequest = string:ClientCertificateRequest[( [Country= string], - [State= string], - [City= string], - [Organization= string], - [OrganizationalUnit= string], - [CommonName= string], - [Challenge= string], - [SignatureAlgorithm= digestAlgorithm])] Throws PKCSError
%outString = string:DEA128CBCdecrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:DEA128CBCencrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:DEA128decrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:DEA128encrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:DEA192CBCdecrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:DEA192CBCencrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:DEA192decrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:DEA192encrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:DEA64CBCdecrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:DEA64CBCencrypt( key, initVector) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData, InvalidCryptoInitVector
%outString = string:DEA64decrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%outString = string:DEA64encrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
%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
%boolean = string:EndsWith( endString)
%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:MarksStoreCodeDecrement
%outString = string:MarksStoreCodeIncrement
%number = string:MarksStoreCodeToNumber
%outString = string:MD5digest
%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)
%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])
%doc = string:RSAPrivateKeyToXmlDoc Throws InvalidBerData
%outString = string:SHAdigest
%outString = string:SHA224digest
%outString = string:SHA256digest
%outString = string:SHA384digest
%outString = string:SHA512digest
[%signedCert =] string:SignedCertificate( [PrivateKey=] string, - [[Signer=] string], - [[StartDate=] string], - [[EndDate=] string], - [[SerialNumber=] number], - [SignatureAlgorithm= digestAlgorithm]) Throws PKCSError
[%signedCert =] string:SignedClientCertificate( [PrivateKey=] string, - [[Signer=] string], - [[StartDate=] string], - [[EndDate=] string], - [[SerialNumber=] number], - [SignatureAlgorithm= digestAlgorithm]) Throws PKCSError
%boolean = string:StartsWith( abbreviation)
%outString = string:StringToBase64
%days = string:StringToDays( format, [[CentSpan=] number]) Throws InvalidDateString
%outString = string:StringToHex
%stringTokenizer = string:StringTokenizer[( [TokenChars= string], - [Spaces= string], - [Quotes= string], - [Separators= string])]
%milliseconds = string:StringToMilliseconds( format, [[CentSpan=] number]) Throws InvalidDateString
%seconds = string:StringToSeconds( format, [[CentSpan=] number]) Throws InvalidDateString
%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])]