Unicode methods syntax: Difference between revisions
(Automatically generated page update) |
(Automatically generated page update) |
||
(One intermediate revision by one other user 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">%Json</span><span class="literal"> =</span> <span class="term">unicode</span><span class="literal">:[[JsonParse (Unicode function)|JsonParse]]</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">:[[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">:[[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> | ||
Line 11: | 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">%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> |
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)