Unicode methods syntax: Difference between revisions
m (Automatically generated page update) |
(Automatically generated page update) |
||
Line 2: | Line 2: | ||
replaced, so any manual edits will be lost. You've been warned. --> | replaced, so any manual edits will be lost. You've been warned. --> | ||
{{Template:Syntax list header|class=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">%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> |
Revision as of 20:13, 23 April 2014
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.
%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)
%number = unicode:UnicodeLT( comparand)
%outUnicode = unicode:UnicodeLeft( number, [Pad= c])
%number = unicode:UnicodeLength
%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)