Unicode methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
(Automatically generated page update)
 
(5 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=Unicode}}
{{Template:Syntax list header|class=Unicode}}
<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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeChar (Unicode function)|UnicodeChar]]</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:1px solid;"><span class="term">%Json</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[JsonParse (Unicode function)|JsonParse]]</span>
 
Throws [[JsonParseError class|JsonParseError]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeAfter (Unicode function)|UnicodeAfter]]</span><span class="literal">(</span> <span class="term" title="Unicode">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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeBefore (Unicode function)|UnicodeBefore]]</span><span class="literal">(</span> <span class="term" title="Unicode">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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeChar (Unicode function)|UnicodeChar]]</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">%number</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeEQ (Unicode function)|UnicodeEQ]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodeEQ (Unicode function)|UnicodeEQ]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">%string</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeFormUrlEncode (Unicode function)|UnicodeFormUrlEncode]]</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">%string</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeFormUrlEncode (Unicode function)|UnicodeFormUrlEncode]]</span></p>
Line 8: Line 13:
<p class="syntax" 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">unicode</span><span class="literal">:[[UnicodeGT (Unicode function)|UnicodeGT]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodeGT (Unicode function)|UnicodeGT]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodeLE (Unicode function)|UnicodeLE]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodeLE (Unicode function)|UnicodeLE]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodeLT (Unicode function)|UnicodeLT]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeLeft (Unicode function)|UnicodeLeft]]</span><span class="literal">(</span> <span class="term" title="Number">number</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeLeft (Unicode function)|UnicodeLeft]]</span><span class="literal">(</span> <span class="term" title="Number">number</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">%number</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeLength (Unicode function)|UnicodeLength]]</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">unicode</span><span class="literal">:[[UnicodeLength (Unicode function)|UnicodeLength]]</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">unicode</span><span class="literal">:[[UnicodeLT (Unicode function)|UnicodeLT]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodeNE (Unicode function)|UnicodeNE]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodeNE (Unicode function)|UnicodeNE]]</span><span class="literal">(</span> <span class="term" title="Unicode">comparand</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">unicode</span><span class="literal">:[[UnicodePositionIn (Unicode function)|UnicodePositionIn]]</span><span class="literal">(</span> <span class="term" title="Unicode">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">unicode</span><span class="literal">:[[UnicodePositionIn (Unicode function)|UnicodePositionIn]]</span><span class="literal">(</span> <span class="term" title="Unicode">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">unicode</span><span class="literal">:[[UnicodePositionOf (Unicode function)|UnicodePositionOf]]</span><span class="literal">(</span> <span class="term" title="Unicode">needle</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">unicode</span><span class="literal">:[[UnicodePositionOf (Unicode function)|UnicodePositionOf]]</span><span class="literal">(</span> <span class="term" title="Unicode">needle</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">unicode</span><span class="literal">:[[UnicodeRegexMatch (Unicode function)|UnicodeRegexMatch]]</span><span class="literal">(</span> <span class="term" title="Unicode">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">unicode</span><span class="literal">:[[UnicodeRegexMatch (Unicode function)|UnicodeRegexMatch]]</span><span class="literal">(</span> <span class="term" title="Unicode">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>
 
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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeRegexReplace (Unicode function)|UnicodeRegexReplace]]</span><span class="literal">(</span> <span class="term" title="Unicode">regex</span><span class="comma">,</span> <span class="term" title="Unicode">replacement</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeRegexReplace (Unicode function)|UnicodeRegexReplace]]</span><span class="literal">(</span> <span class="term" title="Unicode">regex</span><span class="comma">,</span> <span class="term" title="Unicode">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>
                                           <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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeReplace (Unicode function)|UnicodeReplace]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeReplace (Unicode function)|UnicodeReplace]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeRight (Unicode function)|UnicodeRight]]</span><span class="literal">(</span> <span class="term" title="Number">number</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeRight (Unicode function)|UnicodeRight]]</span><span class="literal">(</span> <span class="term" title="Number">number</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeSubstring (Unicode function)|UnicodeSubstring]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeSubstring (Unicode function)|UnicodeSubstring]]</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">%string</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeToEbcdic (Unicode function)|UnicodeToEbcdic]]</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: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeToEbcdic (Unicode function)|UnicodeToEbcdic]]</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>
<p class="syntax" 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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeToLower (Unicode function)|UnicodeToLower]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeToLower (Unicode function)|UnicodeToLower]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeToUpper (Unicode function)|UnicodeToUpper]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeToUpper (Unicode function)|UnicodeToUpper]]</span></p>
Line 28: Line 39:
<p class="syntax" 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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeTrimLeft (Unicode function)|UnicodeTrimLeft]]</span><span class="literal">(</span> <span class="term" title="Number">amount</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeTrimLeft (Unicode function)|UnicodeTrimLeft]]</span><span class="literal">(</span> <span class="term" title="Number">amount</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeTrimRight (Unicode function)|UnicodeTrimRight]]</span><span class="literal">(</span> <span class="term" title="Number">amount</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeTrimRight (Unicode function)|UnicodeTrimRight]]</span><span class="literal">(</span> <span class="term" title="Number">amount</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeUnspace (Unicode function)|UnicodeUnspace]]</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>
<p class="syntax" 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">unicode</span><span class="literal">:[[UnicodeUntranslatablePosition (Unicode function)|UnicodeUntranslatablePosition]]</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">unicode</span><span class="literal">:[[UnicodeUntranslatablePosition (Unicode function)|UnicodeUntranslatablePosition]]</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">%string</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeUrlEncode (Unicode function)|UnicodeUrlEncode]]</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">%string</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeUrlEncode (Unicode function)|UnicodeUrlEncode]]</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeWith (Unicode function)|UnicodeWith]]</span><span class="literal">(</span> <span class="term" title="Unicode">unicode2</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">%outUnicode</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[UnicodeWith (Unicode function)|UnicodeWith]]</span><span class="literal">(</span> <span class="term" title="Unicode">unicode2</span><span class="literal">)</span></p>

Latest revision as of 20:38, 11 May 2016

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

%Json = unicode:JsonParse Throws JsonParseError

%outUnicode = unicode:UnicodeAfter( substring, [Start= number])

%outUnicode = unicode:UnicodeBefore( substring, [Start= number])

%outUnicode = unicode:UnicodeChar( position)

%number = unicode:UnicodeEQ( comparand)

%string = unicode:UnicodeFormUrlEncode

%number = unicode:UnicodeGE( comparand)

%number = unicode:UnicodeGT( comparand)

%number = unicode:UnicodeLE( comparand)

%outUnicode = unicode:UnicodeLeft( number, [Pad= c])

%number = unicode:UnicodeLength

%number = unicode:UnicodeLT( comparand)

%number = unicode:UnicodeNE( comparand)

%position = unicode:UnicodePositionIn( haystack, [Start= number])

%position = unicode:UnicodePositionOf( needle, [Start= number])

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

%outUnicode = unicode:UnicodeRegexReplace( regex, replacement, - [Options= string]) Throws InvalidRegex

%outUnicode = unicode:UnicodeReplace

%outUnicode = unicode:UnicodeRight( number, [Pad= c])

%outUnicode = unicode:UnicodeSubstring( position, [length], [Pad= c])

%string = unicode:UnicodeToEbcdic[( [CharacterEncode= boolean])] Throws CharacterTranslationException

%outUnicode = unicode:UnicodeToLower

%outUnicode = unicode:UnicodeToUpper

%string = unicode:UnicodeToUtf16[( [InsertBOM= boolean])]

%string = unicode:UnicodeToUtf8[( [InsertBOM= boolean])]

%outUnicode = unicode:UnicodeTrimLeft( amount)

%outUnicode = unicode:UnicodeTrimRight( amount)

%outUnicode = unicode:UnicodeUnspace[( [Spaces= string], [Leading= boolean], - [Trailing= boolean], - [Compress= boolean])]

%number = unicode:UnicodeUntranslatablePosition

%string = unicode:UnicodeUrlEncode

%outUnicode = unicode:UnicodeWith( unicode2)