Reverse (String function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "This intrinsic function returns the characters in the method object string in right-to-left order. ...")
 
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
This [[Intrinsic Classes|intrinsic]] function returns the characters in the      
{{Template:String:Reverse subtitle}}
method object string in right-to-left order.                                      
 
                                                                                 
The <var>Reverse</var> [[Intrinsic classes|intrinsic]] function returns the characters in the method object string in right-to-left order.
The Reverse function is available as of version 7.3 of the [[Sirius Mods]].       
 
===Reverse syntax===                                                             
==Syntax==
  %outStr = string:Reverse                                                      
{{Template:String:Reverse syntax}}
===Syntax Terms===                                                                
===Syntax terms===
<dl>                                                                              
<table class="syntaxTable">
<dt>%outStr                                                                       
<tr><th>%outString</th>
<dd>A string or Longstring to receive the re-ordered                              
<td>A string or to receive the re-ordered characters from the input method object <var class="term">string</var>.</td></tr>
characters from the input string.                                                
<tr><th>string</th>
<dt>string                                                                        
<td>The input <var class="term">string</var> to which the method is applied.</td></tr>
<dd>The input string or Longstring.                                              
</table>
                                                                                 
 
</dl>                                                                            
==Usage notes==
===Examples===                                                                   
<ul><li>The <var>Reverse</var> function is available as of <var class="product">[[Sirius Mods|Sirius Mods]]</var> Version 7.3.</ul>
                                                                                 
 
A Reverse method example follows:                                                
==Examples==
    . . .                                                                        
A <var>Reverse</var> method example follows:
    %s is longstring                                                              
<p class="code">. . .
    %s = 'A c E g ?4lN'                                                          
%s is longstring
    [[PrintText Statement|printText]] {~} = '{%s:reverse}'                        
%s = 'A c E g ?4lN'
    . . .                                                                        
[[PrintText statement|printText]] {~} = '{%s:reverse}'
will display:                                                                    
. . .
    %s:reverse = Nl4? g E c A                                                    
</p>
                                                                                 
will display:
===See also===                                                                   
<p class="code">%s:reverse = Nl4? g E c A
[[List of Intrinsic String Methods]]
</p>
 
==See also==
{{Template:String:Reverse footer}}

Latest revision as of 21:05, 5 November 2012

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 object string.
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

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