ToUpper and ToLower (String functions): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
Line 18: Line 18:


==Examples==
==Examples==
<ol><li>
Example ToUpper and ToLower statements follow:
Example ToUpper and ToLower statements follow:
<p class="code">    . . .
<p class="code">    . . .
Line 30: Line 29:
<p class="code">    %s:toUpper = A C E G ?4LN ,8, T V { Z
<p class="code">    %s:toUpper = A C E G ?4LN ,8, T V { Z
     %s:toLower = a c e g ?4ln ,8, t v { z
     %s:toLower = a c e g ?4ln ,8, t v { z
</p></ol>
</p>


==See also==
==See also==
{{Template:String:ToUpper and ToLower footer}}
{{Template:String:ToUpper and ToLower footer}}

Revision as of 16:41, 10 January 2012

Translate to uppercase/lowercase (String class)


The ToUpper and ToLower functions return the alphabetic characters in the method object string as all-uppercase or all-lowercase characters, respectively. Non-alphabetic characters are returned as is, and the input string undergoes no other change.

Syntax

%outString = string:ToUpper

%outString = string:ToLower

Syntax terms

%outString A string to receive the all-uppercase or all-lowercase characters converted from the input string.
string The input, method object string.

Usage notes

  • These functions are available as of Sirius Mods Version 7.3.

Examples

Example ToUpper and ToLower statements follow:

. . . %s is longstring %s = 'A c E g ?4lN ,8, t v { Z' printText {~} = '{%s:toUpper}' printText {~} = '{%s:toLower}' . . .

The results are:

%s:toUpper = A C E G ?4LN ,8, T V { Z %s:toLower = a c e g ?4ln ,8, t v { z

See also