String case: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
(Add Ecstasy example) |
||
Line 1,619: | Line 1,619: | ||
OUTPUT (LowerCased); |
OUTPUT (LowerCased); |
||
OUTPUT (TitleCased);</syntaxhighlight> |
OUTPUT (TitleCased);</syntaxhighlight> |
||
=={{header|Ecstasy}}== |
|||
The methods on <code>String</code> are <code>toUppercase()</code> and <code>toLowercase()</code>: |
|||
<syntaxhighlight lang="ecstasy"> |
|||
module test { |
|||
void run() { |
|||
@Inject Console console; |
|||
console.print($"{"alphaBETA".toLowercase()=}"); |
|||
console.print($"{"alphaBETA".toUppercase()=}"); |
|||
} |
|||
} |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
x$ xec test |
|||
"alphaBETA".toLowercase()=alphabeta |
|||
"alphaBETA".toUppercase()=ALPHABETA |
|||
</pre> |
|||
=={{header|Elena}}== |
=={{header|Elena}}== |