Unicode methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 18: | Line 18: | ||
<p class="syntax" style="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> | ||
<p class="syntax" style="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">:[[UnicodeToUtf16 (Unicode function)|UnicodeToUtf16]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">InsertBOM=</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">:[[UnicodeToUtf16 (Unicode function)|UnicodeToUtf16]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">InsertBOM=</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">:[[UnicodeToUtf8 (Unicode function)|UnicodeToUtf8]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">InsertBOM=</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">:[[UnicodeToUtf8 (Unicode function)|UnicodeToUtf8]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">InsertBOM=</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">%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">%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">%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">unicode</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">unicode</span><span class="literal">)</span></p> |
Revision as of 12:28, 7 February 2011
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:UnicodeChar( position)
%outUnicode = unicode:UnicodeLeft( number, [Pad= c])
%number = unicode:UnicodeLength
%number = unicode:UnicodePositionIn( string, [Start= number])
%number = unicode:UnicodePositionOf( string, [Start= number])
%number = unicode:UnicodeRegexMatch( regex, [Options= string], - [CaptureList= stringlist])
%outUnicode = unicode:UnicodeRegexReplace( regex, replacement, - [Options= string])
%outUnicode = unicode:UnicodeReplace
%outUnicode = unicode:UnicodeRight( number, [Pad= c])
%outUnicode = unicode:UnicodeSubstring( number, [number], [Pad= c])
%string = unicode:UnicodeToEbcdic[( [CharacterEncode= boolean])]
%outUnicode = unicode:UnicodeToLower
%outUnicode = unicode:UnicodeToUpper
%string = unicode:UnicodeToUtf16[( [InsertBOM= boolean])]
%string = unicode:UnicodeToUtf8[( [InsertBOM= boolean])]
%outUnicode = unicode:UnicodeTrimLeft( amount)
%outUnicode = unicode:UnicodeTrimRight( amount)
%number = unicode:UnicodeUntranslatablePosition
%outUnicode = unicode:UnicodeWith( unicode)