Jump to content

String case: Difference between revisions

(→‎{{header|Elixir}}: add example)
Line 3,005:
</syntaxhighlight>
 
=={{header|RPL}}==
RPL has very limited string features. Any user must build her/his own basic library.
{{works with|Halcyon Calc|4.2.7}}
≪ "" 1 3 PICK SIZE FOR j
OVER j DUP SUB NUM
DUP 109.5 - ABS 13 ≥ SWAP DUP 32 - IFTE
CHR +
NEXT
SWAP DROP
'→MAJ' STO
≪ "" 1 3 PICK SIZE FOR j
OVER j DUP SUB NUM
DUP 77.5 - ABS 13 ≥ SWAP DUP 32 + IFTE
CHR +
NEXT
SWAP DROP
'→MIN' STO
 
"alphaBETA" →MAJ
"alphaBETA" →MIN
{{out}}
<pre>
2: "ALPHABETA"
1: "alphabeta"
</pre>
2: "ALPHABETA"
1: "alphabeta"
=={{header|Ruby}}==
<syntaxhighlight lang="ruby">"alphaBETA".downcase # => "alphabeta"
1,151

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.