ToUpper and ToLower (String functions): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 3: | Line 3: | ||
{{Template:String:ToLower subtitle}} | {{Template:String:ToLower subtitle}} | ||
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. | 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. | ||
These functions are available as of [[Sirius Mods]] version 7.3. | These functions are available as of [[Sirius Mods]] version 7.3. | ||
===ToUpper and ToLower syntax=== | ===ToUpper and ToLower syntax=== | ||
{{Template:String:ToUpper syntax}} | {{Template:String:ToUpper syntax}} | ||
{{Template:String:ToLower syntax}} | {{Template:String:ToLower syntax}} | ||
Line 17: | Line 17: | ||
</table> | </table> | ||
===Examples=== | ===Examples=== | ||
Example ToUpper and ToLower statements follow: | Example ToUpper and ToLower statements follow: | ||
. . . | . . . | ||
%s is longstring | %s is longstring | ||
%s = 'A c E g ?4lN ,8, t v { Z' | %s = 'A c E g ?4lN ,8, t v { Z' | ||
[[Intrinsic classes#printtext|printText]] {~} = '{%s:toUpper}' | [[Intrinsic classes#printtext|printText]] {~} = '{%s:toUpper}' | ||
printText {~} = '{%s:toLower}' | printText {~} = '{%s:toLower}' | ||
. . . | . . . | ||
The results are: | The results are: | ||
%s:toUpper = A C E G ?4LN ,8, T V { Z | %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 | ||
===See also=== | ===See also=== | ||
[[List of intrinsic String methods]] | [[List of intrinsic String methods]] | ||
[[Category:Intrinsic String methods|ToUpper and ToLower function]] | [[Category:Intrinsic String methods|ToUpper and ToLower function]] | ||
[[Category:Intrinsic methods]] | [[Category:Intrinsic methods]] |
Revision as of 14:04, 19 January 2011
Template:String:ToUpper subtitle
Template:String:ToLower subtitle
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.
These functions are available as of Sirius Mods version 7.3.
ToUpper and ToLower syntax
%outString = string:ToUpper
%outString = string:ToLower
Syntax Terms
%outStr | A string or Longstring to receive the all-uppercase or all-lowercase characters converted from the input string. |
---|---|
string | The input string or Longstring. |
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