String case: Difference between revisions

Content added Content deleted
imported>Arakov
Line 1,611: Line 1,611:


=={{header|Elena}}==
=={{header|Elena}}==
ELENA 4.x:
ELENA 6.x:
<syntaxhighlight lang="elena">import system'culture;
<syntaxhighlight lang="elena">import system'culture;
Line 1,618: Line 1,618:
string s1 := "alphaBETA";
string s1 := "alphaBETA";
// Alternative 1
console.writeLine(s1.lowerCase());
console.writeLine(s1.upperCase());
// Alternative 2
console.writeLine(s1.toLower(currentLocale));
console.writeLine(s1.toLower(currentLocale));
console.writeLine(s1.toUpper(currentLocale));
console.writeLine(s1.toUpper(currentLocale));