Reverse (String function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax diagram to revised template; fix tags.)
m (Full stop)
Line 29: Line 29:


==See also==
==See also==
<ul><li>For details of the <var>printtext</var> statement, please see <var>[[Intrinsic classes#printtext|printText]]</var></ul>
<ul><li>For details of the <var>printtext</var> statement, please see <var>[[Intrinsic classes#printtext|printText]]</var>.</ul>
{{Template:String:Reverse footer}}
{{Template:String:Reverse footer}}

Revision as of 23:30, 3 February 2011

Return string characters in right-to-left order (String class)


The Reverse intrinsic function returns the characters in the method object string in right-to-left order.

Syntax

%outString = string:Reverse

Syntax terms

%outString A string or to receive the re-ordered characters from the input method objectstring.
string The input string to which the method is applied.

Usage notes

  • The Reverse function is available as of Sirius Mods version 7.3.

Examples

  1. A Reverse method example follows:

    . . . %s is longstring %s = 'A c E g ?4lN' printText {~} = '{%s:reverse}' . . .

    will display:

    %s:reverse = Nl4? g E c A

See also

  • For details of the printtext statement, please see printText.