Talk:Ordered words: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) (→A bug (which was not really a bug) in Rexx solution: German uppercase translation) |
m (→A bug (which was not really a bug) in Rexx solution: re-inserted a missing '''e'''. -- ~~~~) |
||
Line 144: | Line 144: | ||
: By the way, the above REXX example could be re-written without the need for a PROCEDURE, a Latin alphabet literal string, or temporary variables (along with some appropriate comments explaining the three steps performed): |
: By the way, the above REXX example could be re-written without the need for a PROCEDURE, a Latin alphabet literal string, or temporary variables (along with some appropriate comments explaining the three steps performed): |
||
<lang rexx>uppercase: return translate( |
<lang rexx>uppercase: return translate(changestr("ß",translate(arg(1),'ÄÖÜ',"äöü"),'SS')) |
||
</lang> |
</lang> |
||
Of course, if one wanted to break up the complex instruction, then a local (temporary) variable would be needed, along with a PROCEDURE statement. But the Latin alphabet literal isn't needed. I wonder how those German characters would translate on various codepages. -- [[User:Gerard Schildberger|Gerard Schildberger]] 20:09, 14 July 2012 (UTC) |
Of course, if one wanted to break up the complex instruction, then a local (temporary) variable would be needed, along with a PROCEDURE statement. But the Latin alphabet literal isn't needed. I wonder how those German characters would translate on various codepages. -- [[User:Gerard Schildberger|Gerard Schildberger]] 20:09, 14 July 2012 (UTC) |